/* Live Panchang Styles - Futuristic Design */

/* Force visibility overrides for current info card */
.current-info-card .info-item label,
.current-info-card .info-item span,
.current-info-card label,
.current-info-card span,
.current-info-card div,
.current-info-card h3 {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateHue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(90deg);
    }
    50% {
        transform: translate(-5px, -20px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(270deg);
    }
}

.live-panchang-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.live-panchang-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(240, 147, 251, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 10s ease-in-out infinite;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 1000px 100%;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.page-controls button {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.page-controls button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.page-controls button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Live Panchang Dashboard */
.live-panchang-dashboard {
    display: grid;
    gap: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.current-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    animation: glow 3s ease-in-out infinite;
}

.current-info-card,
.current-info-card *,
.current-info-card label,
.current-info-card span,
.current-info-card h3,
.current-info-card .card-header,
.current-info-card .card-body {
    color: #FFFFFF !important;
}

.current-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.current-info-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 30px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.15);
}

.current-info-card .card-body {
    position: relative;
    z-index: 2;
}

.current-info-card h3 {
    margin: 0;
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(102, 126, 234, 0.5);
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.refresh-indicator,
.refresh-indicator *,
.refresh-indicator .last-update,
.refresh-indicator span {
    color: #FFFFFF !important;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 5px rgba(0, 0, 0, 0.5);
}

.refresh-icon {
    animation: spin 2s linear infinite;
    font-size: 1.2rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 18px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    min-height: 120px;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.info-item label {
    font-weight: 600 !important;
    opacity: 1 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #FFFFFF !important;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 8px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.info-item span,
#live-current-time {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-shadow: 
        -2px -2px 0 #000,  
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 10px rgba(102, 126, 234, 0.6);
    text-align: center;
    line-height: 1.3;
}

/* Panchang Elements Grid */
.panchang-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.panchang-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.panchang-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.panchang-card:hover::before {
    transform: scaleX(1);
}

.panchang-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

.panchang-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    color: var(--text-primary);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panchang-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.panchang-card .card-body {
    padding: 30px 25px;
}

.panchang-item {
    text-align: center;
}

.item-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-details span {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: inline-block;
}

.paksha, .pada {
    font-weight: 600;
    color: var(--text-primary);
}

.remaining {
    font-style: normal;
    color: #f093fb;
    font-weight: 600;
    animation: glow 2s ease-in-out infinite;
}

/* Timing Grid */
.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.timing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.timing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.timing-card:hover::after {
    opacity: 1;
}

.timing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.timing-card .card-header {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(102, 126, 234, 0.2));
    color: var(--text-primary);
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timing-card .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.timing-card .card-body {
    padding: 25px;
}

.timing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.timing-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.timing-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.timing-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

.timing-value {
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Signs Grid */
.signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.sign-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.sign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sign-card:hover::before {
    opacity: 1;
}

.sign-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(240, 147, 251, 0.3);
    border-color: rgba(240, 147, 251, 0.4);
}

.sign-card .card-header {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.3), rgba(118, 75, 162, 0.3));
    color: white;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.sign-card .card-body {
    padding: 30px 25px;
}

.sign-info {
    text-align: center;
}

.sign-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.sign-details {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.detail-item .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-item .value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

/* Nakshatra Details */
.nakshatra-details-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.nakshatra-details-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.nakshatra-details-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    color: white;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nakshatra-details-card .card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.nakshatra-details-card .card-body {
    padding: 25px;
}

.nakshatra-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.nakshatra-details-grid .detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nakshatra-details-grid .detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #f093fb);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nakshatra-details-grid .detail-item:hover::before {
    transform: scaleY(1);
}

.nakshatra-details-grid .detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.nakshatra-details-grid .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nakshatra-details-grid .value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.value.auspicious {
    color: #10b981;
    font-weight: 700;
}

.value.inauspicious {
    color: #f5576c;
    font-weight: 700;
}

/* Planetary Positions */
.planetary-positions-dashboard {
    margin-top: 30px;
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.planet-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.planet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.planet-card:hover::before {
    transform: scaleX(1);
}

.planet-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.planet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.planet-header h4 {
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
    font-weight: 700;
}

.retrograde-indicator {
    background: linear-gradient(135deg, #f5576c, #f093fb);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    animation: glow 2s ease-in-out infinite;
}

.planet-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.planet-sign {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.15rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: center;
}

.planet-degree {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.planet-nakshatra {
    color: #f093fb;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.planet-pada {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

/* Live Kundali */
.live-kundali-dashboard {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.live-kundali-dashboard .card {
    overflow: visible;
}

.live-kundali-dashboard .card-body {
    overflow: visible;
}

.kundali-info {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 15px;
    display: inline-block;
}

.kundali-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-item:hover::before {
    transform: scaleX(1);
}

.summary-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
}

.summary-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.summary-item span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.kundali-chart-container {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.chart-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 3px dashed rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent 70%);
    transform: translate(-50%, -50%);
    animation: float 4s ease-in-out infinite;
}

.chart-placeholder:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.chart-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.live-chart-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    border: 3px solid rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    display: block;
    object-fit: contain;
}

.live-chart-image:hover {
    transform: scale(1.01);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.6);
    border-color: rgba(102, 126, 234, 0.6);
}

.chart-info {
    margin-top: 25px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.chart-info p {
    color: var(--text-secondary);
    margin: 8px 0;
    font-size: 1rem;
}

.chart-info p:first-child {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Loading and Error States */
.loading-container, .error-container {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #667eea;
    border-right: 5px solid #764ba2;
    border-bottom: 5px solid #f093fb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.loading-container p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    animation: glow 2s ease-in-out infinite;
}

.error-container .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.error-container h3 {
    color: #f5576c;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(245, 87, 108, 0.3);
    border-color: #f5576c;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 25px 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* Card General Styling Enhancement */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.card .card-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card .card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.card .card-body {
    padding: 25px;
}

/* Staggered Animation for Cards */
.panchang-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.panchang-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.panchang-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }
.panchang-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s backwards; }

.timing-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.timing-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.timing-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }

.sign-card:nth-child(1) { animation: slideInRight 0.6s ease-out 0.1s backwards; }
.sign-card:nth-child(2) { animation: slideInRight 0.6s ease-out 0.2s backwards; }

.planet-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.05s backwards; }
.planet-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.1s backwards; }
.planet-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.15s backwards; }
.planet-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.2s backwards; }
.planet-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.25s backwards; }
.planet-card:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.3s backwards; }
.planet-card:nth-child(7) { animation: fadeInUp 0.5s ease-out 0.35s backwards; }

/* Custom Scrollbar */
.live-panchang-container::-webkit-scrollbar {
    width: 10px;
}

.live-panchang-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.live-panchang-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.live-panchang-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #f093fb);
}

/* Selection Styling */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .live-panchang-container {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .live-panchang-container {
        padding: 15px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-controls button {
        width: 100%;
    }
    
    .panchang-elements-grid,
    .timing-grid,
    .signs-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px 20px;
    }
    
    .nakshatra-details-grid {
        grid-template-columns: 1fr;
    }
    
    .planets-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .kundali-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .panchang-card .card-body,
    .timing-card .card-body,
    .sign-card .card-body {
        padding: 20px;
    }
    
    .planet-card {
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    
    .info-item {
        min-height: 100px;
    }
    
    .item-name {
        font-size: 1.5rem;
    }
    
    .kundali-summary {
        gap: 15px;
    }
}
