/* style_main.css - DASHBOARD STYLING */

/* === VARIABLES === */
:root {
    --primary: #1e3c72;
    --primary-dark: #0f1c3d;
    --primary-light: #2a5298;
    --secondary: #ff6b6b;
    --secondary-light: #ff8e53;
    --accent: #10b981;
    --warning: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* === DASHBOARD LAYOUT === */
.jurumiyah-dashboard {
    min-height: 100vh;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === WELCOME SECTION === */
.dashboard-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
      content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-greeting {
    display: block;
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.welcome-user {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
}

.welcome-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* === ACTIONS SECTION === */
.dashboard-actions {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
    font-weight: 800;
    text-align: center;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.action-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.action-card.primary-action {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.action-card.primary-action::before {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

.action-icon {
    width: 70px;
    height: 70px;
    background: rgba(30, 60, 114, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.primary-action .action-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action-content {
    flex: 1;
}

.action-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.action-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.primary-action .action-content p {
    color: rgba(255, 255, 255, 0.9);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.action-arrow {
    color: var(--text-light);
    font-size: 1.2rem;
}

.primary-action .action-arrow {
    color: white;
}

/* === PROGRESS SECTION === */
.dashboard-progress {
    padding: 4rem 0;
    background: var(--bg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.progress-stats {
    display: flex;
    gap: 2rem;
}

.progress-stat {
    text-align: center;
}

.progress-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.progress-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.progress-chart-card,
.recent-activity-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.progress-chart-card h3,
.recent-activity-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.progress-chart {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
    flex: 1;
}

.chart-bar {
    flex: 1;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: height 0.3s ease;
    min-height: 20px;
}

.chart-bar.completed {
    background: linear-gradient(to top, var(--accent), #34d399);
}

.chart-bar.in-progress {
    background: linear-gradient(to top, var(--warning), #fbbf24);
}

.chart-bar.not-started {
    background: linear-gradient(to top, var(--text-light), #9ca3af);
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-color.completed {
    background: var(--accent);
}

.legend-color.in-progress {
    background: var(--warning);
}

.legend-color.not-started {
    background: var(--text-light);
}

/* Recent Activity */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--bg);
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 60, 114, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.activity-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

.activity-action {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.activity-action:hover {
    background: var(--primary);
    color: white;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    gap: 1rem;
}

/* === RECOMMENDATION SECTION === */
.dashboard-recommendation {
    padding: 4rem 0;
    background: white;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.recommendation-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="Arial" font-size="120">﷽</text></svg>');
    background-size: 200px;
}

.rec-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.rec-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.rec-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.rec-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.motivation-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.motivation-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.motivation-content h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.motivation-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
    font-style: italic;
}

.motivation-source {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: right;
}

/* === NAVIGATION SECTION === */
.dashboard-navigation {
    padding: 4rem 0;
    background: var(--bg);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.nav-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.nav-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.nav-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === FLOATING ACTION BUTTON === */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab-primary {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-primary:hover {
    transform: scale(1.1);
}

.fab-primary.active {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.fab-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-item {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.fab-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .welcome-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-user {
        font-size: 1.8rem;
    }
    
    .welcome-stats {
        justify-content: center;
    }
    
    .stat-card {
        min-width: auto;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-header {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-stats {
        justify-content: center;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .rec-actions {
        flex-direction: column;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-chart {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .chart-bars {
        height: 150px;
        width: 100%;
    }
    
    .chart-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-card {
        justify-content: center;
    }
    
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }
}