/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pink and Purple Theme as per user preference */
    --primary: #ec4899;
    --secondary: #a855f7;
    --accent: #f472b6;
    --dark: #1e1b4b;
    --light: #fdf4ff;
    --text: #334155;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 50%, #f3e8ff 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    color: white;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.zodiac-symbol {
    font-size: 60px;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.header-stats .stat-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.header-stats .stat-card i {
    width: 24px;
    height: 24px;
}

.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 20px;
}

.card-header h2 {
    font-size: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

/* Overview Section */
.overview-card {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-left: 5px solid var(--primary);
}

.overview-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark);
}

.energy-meter {
    width: 100%;
    height: 30px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.energy-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    transition: width 1s ease;
}

.energy-label {
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card-large {
    text-align: center;
    padding: 35px 25px;
}

.stat-card-large.love {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-left: 5px solid #ec4899;
}

.stat-card-large.career {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-left: 5px solid #a855f7;
}

.stat-card-large.money {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
}

.stat-card-large.health {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 5px solid #10b981;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-icon i {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.stat-card-large h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark);
}

.rating {
    margin: 15px 0;
    font-size: 24px;
}

.star {
    color: #fbbf24;
}

.star.empty {
    color: #d1d5db;
}

.stat-card-large p {
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-card canvas {
    max-height: 300px;
}

/* Lucky Section */
.section-title {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lucky-card {
    text-align: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 30px;
}

.lucky-card i {
    width: 40px;
    height: 40px;
    color: #92400e;
    margin-bottom: 15px;
}

.lucky-card h3 {
    font-size: 18px;
    color: #78350f;
    margin-bottom: 15px;
}

.lucky-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.number {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-display, .element-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.element-icon {
    font-size: 40px;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-card {
    border-left: 4px solid var(--primary);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.insight-header i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.insight-header h3 {
    font-size: 20px;
    color: var(--dark);
}

.insight-card p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Advice Section */
.advice-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-left: 5px solid #f59e0b;
}

.advice-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.advice-icon i {
    width: 30px;
    height: 30px;
    color: #f59e0b;
}

.advice-content h2 {
    font-size: 24px;
    color: #78350f;
    margin-bottom: 15px;
}

.advice-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #92400e;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: var(--dark);
    color: white;
    border-radius: 16px;
}

.footer p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .lucky-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .advice-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .dashboard {
        padding: 0;
    }

    .card {
        box-shadow: none;
        page-break-inside: avoid;
    }
}