﻿/* User Dashboard Custom Styles - Compatible with Existing Layout */

/* Variables based on your layout colors */
:root {
    --user-primary: #0d6efd;
    --user-secondary: #6c757d;
    --user-success: #198754;
    --user-warning: #ffc107;
    --user-danger: #dc3545;
    --user-info: #0dcaf0;
    --user-light: #f8f9fa;
    --user-dark: #212529;
}

/* Main Dashboard Container */
.dashboard-container {
    padding: 2rem 0;
    min-height: calc(100vh - 400px);
}

/* Welcome Header */
.welcome-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

    .welcome-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(30%, -30%);
    }

    .welcome-header .welcome-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
        opacity: 0.9;
    }

/* Stats Cards */
.dashboard-stats {
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .stats-card i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .stats-card.primary i {
        color: var(--user-primary);
    }

    .stats-card.success i {
        color: var(--user-success);
    }

    .stats-card.warning i {
        color: var(--user-warning);
    }

    .stats-card.info i {
        color: var(--user-info);
    }

    .stats-card h3 {
        font-size: 2rem;
        font-weight: 700;
        margin: 0.5rem 0;
        color: var(--user-dark);
    }

    .stats-card p {
        color: #6c757d;
        margin-bottom: 1rem;
    }

/* Activity Cards */
.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border: 1px solid #e9ecef;
}

    .activity-card .card-header {
        background: white;
        border-bottom: 2px solid #f1f3f4;
        padding: 1.25rem 1.5rem;
        font-weight: 600;
        color: var(--user-dark);
    }

        .activity-card .card-header i {
            margin-left: 0.5rem;
            color: var(--user-primary);
        }

    .activity-card .card-body {
        padding: 1.5rem;
    }

/* List Items */
.dashboard-list .list-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

    .dashboard-list .list-item:hover {
        background: #f8f9fa;
        border-radius: 8px;
    }

    .dashboard-list .list-item:last-child {
        border-bottom: none;
    }

.dashboard-list .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

    .dashboard-list .item-icon.order {
        background: rgba(13, 110, 253, 0.1);
        color: var(--user-primary);
    }

    .dashboard-list .item-icon.file {
        background: rgba(25, 135, 84, 0.1);
        color: var(--user-success);
    }

/* Profile Section */
.profile-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.profile-avatar-container {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--user-primary);
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

/* Settings Navigation */
.settings-nav {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .settings-nav .nav-link {
        padding: 1rem 1.5rem;
        color: var(--user-dark);
        border-bottom: 1px solid #f1f3f4;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }

        .settings-nav .nav-link i {
            margin-left: 0.75rem;
            color: var(--user-primary);
            width: 20px;
            text-align: center;
        }

        .settings-nav .nav-link:hover {
            background: #f8f9fa;
            color: var(--user-primary);
        }

        .settings-nav .nav-link.active {
            background: rgba(13, 110, 253, 0.05);
            color: var(--user-primary);
            border-right: 3px solid var(--user-primary);
        }

        .settings-nav .nav-link:last-child {
            border-bottom: none;
        }

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--user-dark);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .quick-action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        color: var(--user-primary);
    }

    .quick-action-btn i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

/* Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

/* Responsive */
@media (max-width: 768px) {
    .welcome-header {
        padding: 1.5rem;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-card h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 1rem 0;
    }
}
