/*
 * Dragon Boosting Dashboard Styles
 * Color Scheme: Black (#070701, #000000) + Gold (#FFC908, #FFD900)
 * Typography: Rajdhani (titles), Inter (body)
 */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Dashboard Container */
.dragon-boosting-dashboard {
    display: flex;
    min-height: 100vh;
    background: #000000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1C1C1C 0%, #000000 100%);
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 201, 8, 0.2);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 201, 8, 0.2);
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid #FFC908;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFC908;
    margin: 0 0 5px 0;
}

.user-info p {
    font-size: 16px;
    color: #FFFFFF;
    margin: 0;
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 201, 8, 0.1);
    border-color: rgba(255, 201, 8, 0.3);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, #FFC908 0%, #FFD900 100%);
    color: #070701;
    box-shadow: 0 4px 12px rgba(255, 201, 8, 0.3);
}

/* Dashboard Content */
.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.dashboard-content h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #FFC908;
    margin: 0 0 30px 0;
}

.dashboard-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 30px 0 20px 0;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(54, 44, 0, 0.39), rgba(156, 127, 0, 0.75));
    backdrop-filter: blur(4.55px);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 201, 8, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 201, 8, 0.3);
}

.stat-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFC908;
    margin: 0 0 10px 0;
}

.stat-card .stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

/* Earnings Chart */
.earnings-chart {
    background: linear-gradient(135deg, rgba(54, 44, 0, 0.39), rgba(156, 127, 0, 0.75));
    backdrop-filter: blur(4.55px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 201, 8, 0.2);
    height: 400px;
}

.earnings-chart canvas {
    max-height: 100%;
}

/* Monthly Stats */
.monthly-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card-large {
    background: linear-gradient(135deg, rgba(54, 44, 0, 0.39), rgba(156, 127, 0, 0.75));
    backdrop-filter: blur(4.55px);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 201, 8, 0.2);
}

.stat-card-large h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFC908;
    margin: 0 0 15px 0;
}

.stat-card-large .stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    display: block;
}

/* Tables */
.jobs-table,
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(28, 28, 28, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

.jobs-table thead,
.orders-table thead {
    background: linear-gradient(90deg, rgba(255, 201, 8, 0.2), rgba(255, 217, 0, 0.2));
}

.jobs-table th,
.orders-table th {
    padding: 15px;
    text-align: left;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFC908;
}

.jobs-table td,
.orders-table td {
    padding: 15px;
    border-top: 1px solid rgba(255, 201, 8, 0.1);
    color: #FFFFFF;
}

.jobs-table tr:hover,
.orders-table tr:hover {
    background: rgba(255, 201, 8, 0.05);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #1C1C1C;
    border-radius: 8px;
    overflow: hidden;
    margin: 5px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFC908 0%, #FFD900 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 201, 8, 0.5);
}

/* Buttons */
.dragon-btn-primary {
    background: linear-gradient(90deg, #FFC908 0%, #FFD900 100%);
    color: #070701;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 201, 8, 0.3);
}

.dragon-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 201, 8, 0.5);
}

.dragon-btn-secondary {
    background: transparent;
    border: 2px solid #FFC908;
    color: #FFC908;
    border-radius: 12px;
    padding: 10px 22px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.dragon-btn-secondary:hover {
    background: rgba(255, 201, 8, 0.1);
    transform: translateY(-2px);
}

.btn-view {
    background: rgba(255, 201, 8, 0.2);
    color: #FFC908;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: rgba(255, 201, 8, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
}

.status-badge.assigned,
.status-badge.active {
    background: rgba(0, 123, 255, 0.2);
    color: #007BFF;
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28A745;
}

.status-badge.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #DC3545;
}

/* Order Cards */
.order-card {
    background: linear-gradient(135deg, rgba(54, 44, 0, 0.39), rgba(156, 127, 0, 0.75));
    backdrop-filter: blur(4.55px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 201, 8, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-header h3 {
    margin: 0;
    font-size: 24px;
    color: #FFFFFF;
}

.order-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.order-info p {
    margin: 8px 0;
    color: #FFFFFF;
}

.order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
    .dragon-boosting-dashboard {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 201, 8, 0.2);
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
    }

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

    .order-body {
        grid-template-columns: 1fr;
    }
}
