/* ===================================
   MODERN DASHBOARD STYLES
   =================================== */

/* Welcome Section */
.dashboard-welcome {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.15), rgba(123, 192, 67, 0.15));
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(217, 70, 239, 0.1), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(123, 192, 67, 0.1), transparent 50%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.welcome-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.welcome-text h2 {
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.welcome-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: #fff;
    box-shadow: 0 5px 20px rgba(217, 70, 239, 0.3);
}
.welcome-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 70, 239, 0.5);
}

.welcome-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}
.welcome-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

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

.stat-card-modern {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
    border-color: rgba(217, 70, 239, 0.5);
}

.stat-icon-modern {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    flex-shrink: 0;
}

.stat-content-modern { position: relative; }

.stat-value-modern {
    font-size: 28px; font-weight: 800;
    color: #fff; margin: 0 0 5px 0;
}
.stat-label-modern {
    font-size: 13px; color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Orders Section */
.orders-section {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.orders-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; justify-content: space-between; align-items: center;
}

.orders-header h3 { font-size: 18px; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.orders-header h3 i { color: var(--primary); }

.view-all-btn {
    padding: 8px 16px;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.3);
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    transition: all 0.3s;
}
.view-all-btn:hover {
    background: rgba(217, 70, 239, 0.2);
    transform: translateX(5px);
}

/* Modern Table */
.modern-table-container { overflow-x: auto; }
.modern-table { width: 100%; border-collapse: collapse; }

.modern-table th {
    padding: 18px 30px;
    text-align: left; font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table td {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.modern-table tr:hover { background: rgba(217, 70, 239, 0.05); }
.modern-table tr:last-child td { border-bottom: none; }

.order-number {
    font-weight: 700; color: var(--primary);
    text-decoration: none; transition: all 0.3s;
}
.order-number:hover { color: var(--success); }

.status-badge-modern {
    padding: 6px 12px; border-radius: 6px;
    font-size: 12px; font-weight: 600; display: inline-block;
}
.status-completed { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.status-pending { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }

/* Empty State */
.empty-state-modern { padding: 60px 30px; text-align: center; }
.empty-state-icon {
    width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(123, 192, 67, 0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: var(--primary);
}
.empty-state-modern h3 { font-size: 20px; color: #fff; margin: 0 0 10px 0; }
.empty-state-modern p { color: rgba(255, 255, 255, 0.5); margin: 0 0 25px 0; }


/* ==================== MOBİL UYUMLULUK (RESPONSIVE) ==================== */
@media (max-width: 992px) {
    /* 1. Dashboard Grid Tek Kolon */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 2. Hoşgeldin Kutusu Dikey */
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    .welcome-actions {
        width: 100%;
        flex-direction: column;
    }
    .welcome-btn {
        width: 100%;
        justify-content: center;
    }

    /* 3. İstatistikler 2'li */
    .stats-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 4. Tabloyu Karta Çevirme */
    .modern-table, .modern-table thead, .modern-table tbody, .modern-table th, .modern-table td, .modern-table tr { 
        display: block; 
    }
    .modern-table thead tr { 
        position: absolute; top: -9999px; left: -9999px; 
    }
    .modern-table tr { 
        margin-bottom: 15px; 
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        padding: 15px;
    }
    .modern-table td { 
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
        position: relative;
        padding-left: 0; padding-right: 0;
        padding-top: 10px; padding-bottom: 10px;
        display: flex; justify-content: space-between; align-items: center;
        text-align: right;
    }
    .modern-table td:last-child { border-bottom: none; }
    
    .modern-table td:before { 
        content: attr(data-label);
        font-weight: 700; color: rgba(255, 255, 255, 0.5);
        text-align: left; margin-right: 20px;
    }
}

@media (max-width: 480px) {
    /* Küçük ekranda istatistikler tekli */
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
}
