/**
 * Mithila Panchak Frontend Styles
 * 
 * Clean CSS with organized color sections for easy customization
 * No CSS variables - direct color values for maximum compatibility
 */

/* ========================================
   COLOR CUSTOMIZATION SECTIONS
   Change colors in these sections as needed
   ======================================== */

/* MAIN CONTAINER COLORS */
.panchak-calendar-container {
    background-color: #e9a74e !important;
    border-radius: 12px;
}

/* YEAR NAVIGATION COLORS */
.panchak-year-navigation {
    background-color: #d29543 !important;
    border: 0px !important;
}

.panchak-year-selector label {
    color: white;
}

.panchak-year-select {
    border: 2px solid #8D6E63;
    background-color: #FFFFFF;
    color: #5D4037;
}

.panchak-year-select:hover {
    border-color: #5D4037;
}

.panchak-year-select:focus {
    border-color: #5D4037;
    box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.2);
}

/* NAVIGATION BUTTON COLORS */
.panchak-nav-button {
    border: 2px solid #8D6E63;
    background-color: #a2250b;
    color: white;
}

.panchak-nav-button:hover:not(:disabled) {
    background-color: #5D4037;
    color: #FFFFFF;
}

.panchak-nav-button:focus {
    box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.3);
}

.panchak-nav-button:disabled {
    background-color: #F5F5F5;
    color: #999;
    border-color: #DDD;
}

/* YEAR TITLE COLORS */
.panchak-year-title {
    color: #5D4037;
}

/* PERIOD CARD COLORS */
.panchak-period-card {
    background-color: #FFFFFF;
    border: 2px solid transparent;
}

.panchak-period-card:hover {
    border-color: #8D6E63;
}

.panchak-period-card::before {
    background: linear-gradient(90deg, #E6B37A, #8D6E63, #E6B37A);
}

.panchak-period-card::after {
    color: #8D6E63;
}

/* DATE SECTION COLORS */
.panchak-begin {
    background: linear-gradient(135deg, rgba(230, 179, 122, 0.05) 0%, transparent 100%);
}

.panchak-end {
    background: linear-gradient(225deg, rgba(230, 179, 122, 0.05) 0%, transparent 100%);
}

.panchak-label {
    color: #5D4037;
}

.panchak-label::before {
    color: #8D6E63;
}

.panchak-date {
    color: #8D6E63;
}

.panchak-begin .panchak-date {
    color: #6B4423;
}

.panchak-end .panchak-date {
    color: #7A5530;
}

/* YEAR SECTION COLORS */
.year-section {
    border: 0px !important;
    background: transparent;
}

.year-section-header {
    background: #d29543 !important;
    border: 0px !important;
}

.year-section-header::before {
    background: linear-gradient(90deg, #5D4037, #8D6E63, #5D4037);
}

.year-section-title {
    color: white;
}

.year-section-count {
    background: #5D4037;
    color: #FFFFFF;
}

/* RECORD CARD COLORS */
.panchak-record-card {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(141, 110, 99, 0.2);
}

.panchak-record-card:hover {
    background: linear-gradient(135deg, rgba(230, 179, 122, 0.05), rgba(230, 179, 122, 0.02));
    box-shadow: inset 4px 0 0 #8D6E63;
}

.panchak-record-card::before {
    background: linear-gradient(to bottom, #E6B37A, #8D6E63);
}

.record-id {
    background: linear-gradient(135deg, #8D6E63, #5D4037);
    color: #FFFFFF;
}

.date-group {
    background: linear-gradient(135deg, rgba(230, 179, 122, 0.08), rgba(230, 179, 122, 0.03));
    border: 1px solid rgba(141, 110, 99, 0.2);
}

.date-group::before {
    background: linear-gradient(90deg, #E6B37A, #8D6E63);
}

.date-label {
    color: #5D4037;
}

.date-label::before {
    color: #8D6E63;
}

.date-value {
    background: #FFFFFF;
    color: #8D6E63;
    border-left: 3px solid #8D6E63;
}

.record-meta {
    border-top: 1px solid rgba(141, 110, 99, 0.2);
}

.duration-label {
    color: #5D4037;
}

.duration-badge {
    background: linear-gradient(135deg, #8D6E63, #5D4037);
    color: #FFFFFF;
}

/* ERROR MESSAGE COLORS */
.panchak-error {
    background-color: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
}

.panchak-error-enhanced {
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

.panchak-error-title {
    color: #C62828;
}

.panchak-error-message {
    color: #B71C1C;
}

.panchak-retry-button,
.panchak-refresh-button,
.panchak-year-selector-button {
    border: 1px solid #F44336;
    background-color: #FFFFFF;
    color: #C62828;
}

.panchak-retry-button:hover,
.panchak-refresh-button:hover,
.panchak-year-selector-button:hover {
    background-color: #F44336;
    color: white;
}

/* NO DATA MESSAGE COLORS */
.panchak-no-data {
    background-color: rgba(230, 179, 122, 0.1);
}

.panchak-no-data-content h3 {
    color: #5D4037;
}

.panchak-no-data-content p {
    color: #8D6E63;
}

.panchak-suggestions {
    background-color: rgba(230, 179, 122, 0.1);
    border-left: 4px solid #8D6E63;
}

.panchak-suggestions p {
    color: #5D4037;
}

.panchak-year-link {
    background-color: #FFFFFF;
    color: #5D4037;
    border: 1px solid #8D6E63;
}

.panchak-year-link:hover {
    background-color: #5D4037;
    color: #FFFFFF;
}

/* LOADING STATE COLORS */
.panchak-loading {
    color: #8D6E63;
}

.panchak-loading::after {
    border: 2px solid #8D6E63;
    border-top-color: transparent;
}

/* SKELETON LOADING COLORS */
.panchak-skeleton-card {
    background-color: #FFFFFF;
}

.panchak-skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
}

/* NOTIFICATION COLORS */
.panchak-notification {
    background-color: #FFFFFF;
    border: 2px solid #8D6E63;
}

.panchak-notification.success {
    border-color: #4CAF50;
    background-color: #E8F5E8;
}

.panchak-notification.error {
    border-color: #F44336;
    background-color: #FFEBEE;
}

/* NOSCRIPT MESSAGE COLORS */
.panchak-noscript-message {
    background-color: #FFF9C4;
    border: 1px solid #F57F17;
}

.panchak-noscript-message p {
    color: #F57F17;
}

/* ========================================
   LAYOUT AND STRUCTURE STYLES
   (No color customization needed below)
   ======================================== */

/* Main container */
.panchak-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    animation: panchak-fade-in 0.6s ease-out;
}

/* Year navigation section */
.panchak-year-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
    gap: 15px;
    animation: panchak-slide-in 0.5s ease-out 0.2s both;
}

.panchak-year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panchak-year-selector label {
    font-weight: 600;
    margin: 0;
}

.panchak-year-select {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    min-width: 100px;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.panchak-year-select:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.panchak-year-select:focus {
    outline: none;
    transform: scale(1.02);
}

.panchak-year-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Navigation buttons */
.panchak-nav-button {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.panchak-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.panchak-nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.panchak-nav-button:hover:not(:disabled)::before {
    left: 100%;
}

.panchak-nav-button:focus {
    outline: none;
}

.panchak-nav-button:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.1s;
}

.panchak-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panchak-nav-button:disabled::before {
    display: none;
}

/* Calendar content section */
.panchak-calendar-content {
    margin-top: 20px;
}

.panchak-year-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

/* Panchak periods grid section - Vertical Layout */
.panchak-periods-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

/* Staggered animation for cards */
.panchak-period-card {
    animation: panchak-bounce-in 0.6s ease-out both;
}

.panchak-period-card:nth-child(1) {
    animation-delay: 0.1s;
}

.panchak-period-card:nth-child(2) {
    animation-delay: 0.2s;
}

.panchak-period-card:nth-child(3) {
    animation-delay: 0.3s;
}

.panchak-period-card:nth-child(4) {
    animation-delay: 0.4s;
}

.panchak-period-card:nth-child(5) {
    animation-delay: 0.5s;
}

.panchak-period-card:nth-child(6) {
    animation-delay: 0.6s;
}

.panchak-period-card:nth-child(7) {
    animation-delay: 0.7s;
}

.panchak-period-card:nth-child(8) {
    animation-delay: 0.8s;
}

.panchak-period-card:nth-child(9) {
    animation-delay: 0.9s;
}

.panchak-period-card:nth-child(10) {
    animation-delay: 1.0s;
}

.panchak-period-card:nth-child(11) {
    animation-delay: 1.1s;
}

.panchak-period-card:nth-child(12) {
    animation-delay: 1.2s;
}

.panchak-period-card:nth-child(13) {
    animation-delay: 1.3s;
}

.panchak-period-card:nth-child(14) {
    animation-delay: 1.4s;
}

/* Enhanced spacing for larger screens */
@media (min-width: 1200px) {
    .panchak-periods-grid {
        gap: 24px;
    }
}

/* Individual Panchak period card section */
.panchak-period-card {
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add subtle gradient overlay for depth */
.panchak-period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.6;
}

.panchak-period-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.panchak-period-card:hover::before {
    opacity: 1;
}

/* Add card numbering for better organization */
.panchak-period-card {
    counter-increment: panchak-card;
}

.panchak-periods-grid {
    counter-reset: panchak-card;
}

.panchak-period-card::after {
    content: counter(panchak-card);
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.5;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

/* Period content section - Date display styling */
.panchak-period-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

/* Add a subtle divider between begin and end dates */
.panchak-period-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #8D6E63, transparent);
    opacity: 0.3;
    transform: translateY(-50%);
}

.panchak-begin,
.panchak-end {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

/* Add subtle background for better text readability */
.panchak-begin {
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 4px;
}

.panchak-end {
    border-radius: 6px;
    padding: 12px;
    margin-top: 4px;
}

.panchak-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add icons to labels for better visual hierarchy */
.panchak-label::before {
    content: '●';
    font-size: 8px;
}

.panchak-date {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* No data message */
.panchak-no-data {
    text-align: center;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.panchak-no-data-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

.panchak-no-data-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
}

/* Enhanced error messages */
.panchak-error {
    border-radius: 8px;
    padding: 15px;
    font-weight: 600;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    text-align: center;
    margin: 20px 0;
    animation: panchak-shake 0.5s ease-in-out;
}

.panchak-error-enhanced {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}

.panchak-error-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.panchak-error-content {
    flex: 1;
}

.panchak-error-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.panchak-error-message {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.panchak-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.panchak-retry-button,
.panchak-refresh-button,
.panchak-year-selector-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panchak-retry-button:hover,
.panchak-refresh-button:hover,
.panchak-year-selector-button:hover {
    transform: translateY(-1px);
}

/* Specific error type styling */
.panchak-error-security {
    border-color: #FF9800;
    background-color: #FFF3E0;
}

.panchak-error-security .panchak-error-title,
.panchak-error-security .panchak-error-message {
    color: #E65100;
}

.panchak-error-database {
    border-color: #9C27B0;
    background-color: #F3E5F5;
}

.panchak-error-database .panchak-error-title,
.panchak-error-database .panchak-error-message {
    color: #4A148C;
}

.panchak-error-validation {
    border-color: #FF5722;
    background-color: #FBE9E7;
}

.panchak-error-validation .panchak-error-title,
.panchak-error-validation .panchak-error-message {
    color: #BF360C;
}

.panchak-error-invalid-year {
    border-color: #607D8B;
    background-color: #ECEFF1;
}

.panchak-error-invalid-year .panchak-error-title,
.panchak-error-invalid-year .panchak-error-message {
    color: #263238;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced no data message */
.panchak-suggestions {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.panchak-suggestions p {
    font-weight: 600;
    margin-bottom: 10px;
}

.panchak-available-years {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.panchak-available-years li {
    margin: 0;
}

.panchak-year-link {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.panchak-year-link:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

/* NoScript message */
.panchak-noscript-message {
    border-radius: 4px;
    padding: 12px;
    margin-top: 15px;
    text-align: center;
}

.panchak-noscript-message p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

/* Focus management for accessibility */
.panchak-focused {
    outline: 2px solid #5D4037;
    outline-offset: 2px;
}

/* Animation for error shake effect */
@keyframes panchak-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Loading state */
.panchak-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    animation: panchak-pulse 2s ease-in-out infinite;
}

.panchak-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border-top-color: transparent;
    animation: panchak-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Skeleton loading for cards */
.panchak-skeleton-card {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    animation: panchak-pulse 1.5s ease-in-out infinite;
}

.panchak-skeleton-line {
    height: 16px;
    background-size: 200px 100%;
    animation: panchak-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.panchak-skeleton-line.short {
    width: 60%;
}

.panchak-skeleton-line.medium {
    width: 80%;
}

.panchak-skeleton-line.long {
    width: 100%;
}

/* Keyframe animations */
@keyframes panchak-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes panchak-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panchak-slide-in {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes panchak-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes panchak-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes panchak-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Year sections for grouped display */
.year-section {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    animation: panchak-fade-in 0.6s ease-out;
}

.year-section-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.year-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.7;
}

.year-section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.year-section-count {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: panchak-pulse 2s ease-in-out infinite;
}

.year-section-content {
    padding: 0;
}

/* Updated record card styles for vertical layout */
.panchak-record-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.panchak-record-card:hover {
    transform: translateX(5px);
}

.panchak-record-card:last-child {
    border-bottom: none;
}

.panchak-record-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.panchak-record-card:hover::before {
    opacity: 1;
    width: 5px;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.record-id {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-dates {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-width: 0;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.date-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.7;
}

.date-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-label::before {
    content: '●';
    font-size: 8px;
}

.date-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.record-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 5px;
}

.record-duration {
    display: flex;
    align-items: center;
    gap: 10px;
}

.duration-label {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.duration-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', 'Open Sans', Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: panchak-pulse 3s ease-in-out infinite;
}

/* Container styles for different display modes */
.panchak-all-years-container {
    animation: panchak-fade-in 0.8s ease-out;
}

.panchak-single-year-container {
    animation: panchak-slide-in 0.6s ease-out;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .panchak-calendar-container {
        padding: 18px;
        margin: 15px;
    }

    .panchak-periods-grid {
        gap: 18px;
    }

    .panchak-year-navigation {
        padding: 18px;
        gap: 12px;
    }

    .panchak-nav-button {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .panchak-calendar-container {
        padding: 15px;
        margin: 8px;
        border-radius: 8px;
    }

    .panchak-year-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }

    .panchak-year-selector {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .panchak-year-selector label {
        text-align: center;
        font-size: 14px;
    }

    .panchak-year-select {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        font-size: 15px;
        padding: 10px 12px;
    }

    .panchak-year-buttons {
        justify-content: center;
        gap: 8px;
    }

    .panchak-nav-button {
        flex: 1;
        min-width: 0;
        font-size: 12px;
        padding: 10px 8px;
        border-radius: 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .panchak-periods-grid {
        gap: 16px;
    }

    .panchak-year-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .panchak-period-card {
        padding: 18px;
        border-radius: 8px;
    }

    .panchak-period-card::after {
        top: 8px;
        right: 12px;
        font-size: 11px;
    }

    .panchak-date {
        font-size: 14px;
        line-height: 1.6;
    }

    .panchak-label {
        font-size: 11px;
        letter-spacing: 0.8px;
    }

    .panchak-period-card:hover {
        transform: none;
    }

    .panchak-period-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .year-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 20px;
    }

    .year-section-title {
        font-size: 18px;
    }

    .year-section-count {
        align-self: flex-end;
        font-size: 11px;
        padding: 4px 8px;
    }

    .panchak-record-card {
        padding: 20px;
    }

    .record-dates {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .panchak-calendar-container {
        padding: 12px;
        margin: 4px;
        border-radius: 6px;
    }

    .panchak-year-navigation {
        padding: 12px;
        gap: 12px;
    }

    .panchak-year-select {
        font-size: 14px;
        padding: 8px 10px;
    }

    .panchak-nav-button {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 40px;
        border-radius: 4px;
    }

    .panchak-year-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .panchak-periods-grid {
        gap: 12px;
    }

    .panchak-period-card {
        padding: 14px;
        border-radius: 6px;
    }

    .panchak-period-card::after {
        top: 6px;
        right: 10px;
        font-size: 10px;
    }

    .panchak-period-content {
        gap: 14px;
    }

    .panchak-begin,
    .panchak-end {
        padding: 8px;
        gap: 6px;
    }

    .panchak-label {
        font-size: 10px;
        letter-spacing: 0.6px;
    }

    .panchak-label::before {
        font-size: 6px;
    }

    .panchak-date {
        font-size: 13px;
        line-height: 1.5;
    }

    .panchak-no-data {
        padding: 40px 15px;
    }

    .panchak-no-data-content h3 {
        font-size: 18px;
    }

    .panchak-no-data-content p {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .panchak-calendar-container {
        padding: 8px;
        margin: 2px;
    }

    .panchak-year-navigation {
        padding: 10px;
    }

    .panchak-nav-button {
        font-size: 10px;
        padding: 6px 4px;
        min-height: 36px;
    }

    .panchak-year-title {
        font-size: 16px;
    }

    .panchak-period-card {
        padding: 12px;
    }

    .panchak-date {
        font-size: 12px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .panchak-period-card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-color: transparent;
    }

    .panchak-nav-button:hover:not(:disabled) {
        transform: none;
        box-shadow: none;
    }

    .panchak-nav-button:active {
        transform: scale(0.95);
    }

    .panchak-year-select:active {
        transform: scale(0.98);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .panchak-period-card {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .panchak-period-card:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .panchak-calendar-container {
        padding: 12px;
    }

    .panchak-year-navigation {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 12px;
    }

    .panchak-year-selector {
        flex-direction: row;
        gap: 10px;
    }

    .panchak-year-select {
        width: auto;
        min-width: 80px;
    }

    .panchak-periods-grid {
        gap: 14px;
    }
}

/* Print styles */
@media print {
    .panchak-year-navigation {
        display: none;
    }

    .panchak-calendar-container {
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .panchak-period-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #CCC;
        margin-bottom: 10px;
    }

    .panchak-period-card::before,
    .panchak-period-card::after {
        display: none;
    }

    .panchak-periods-grid {
        gap: 10px;
    }
}

/* Interactive states and micro-animations */
.panchak-interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.panchak-interactive:hover {
    transform: scale(1.02);
}

.panchak-interactive:active {
    transform: scale(0.98);
}

/* Smooth transitions for content changes */
.panchak-content-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panchak-content-transition.loading {
    opacity: 0.6;
    transform: scale(0.98);
}

/* Enhanced focus states for accessibility */
.panchak-focusable:focus {
    outline: 2px solid #5D4037;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Notification animations */
.panchak-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: panchak-slide-in 0.3s ease-out;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .panchak-period-card:hover {
        transform: none;
    }

    .panchak-nav-button:hover:not(:disabled) {
        transform: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .panchak-calendar-container {
        background-color: #8D6E63;
    }

    .panchak-year-title,
    .panchak-label,
    .year-section-title,
    .duration-label {
        color: #F5F5F5;
    }

    .panchak-period-card,
    .date-value {
        background-color: #424242;
    }

    .panchak-date {
        color: #E0E0E0;
    }
}
/* Month 
highlighting in dates */
.panchak-month-highlight {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(255, 165, 0, 0.3);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: panchak-month-glow 2s ease-in-out infinite;
}

/* Glow animation for month highlight */
@keyframes panchak-month-glow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(255, 165, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(255, 165, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.4);
    }
}

/* Hover effect for month highlight */
.panchak-simple-card:hover .panchak-month-highlight {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Mobile optimization for month highlight */
@media (max-width: 768px) {
    .panchak-month-highlight {
        padding: 1px 4px;
        font-size: 0.95em;
    }
}
