:root {
    --panel-bg: #f5f7fb;
    --panel-card: #ffffff;
    --panel-border: #e2e8f0;
}

body {
    background-color: var(--panel-bg);
}

.panel-shell {
    padding: 160px 20px 80px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.panel-card {
    background: var(--panel-card);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--panel-border);
    width: 100%;
    max-width: 480px;
}

.panel-hero {
    background: linear-gradient(120deg, rgba(11, 94, 215, 0.05), rgba(25, 118, 210, 0.02));
    border-radius: 18px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.panel-hero h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.panel-muted {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.panel-form {
    display: block;
    width: 100%;
    margin-top: 24px;
}

.panel-field-group {
    margin-bottom: 20px;
    width: 100%;
}

.panel-field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    display: block;
}

.panel-field-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background-color: #ffffff;
    color: #0f172a;
    display: block;
    box-sizing: border-box;
    height: 48px;
    margin-top: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.panel-field-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.panel-btn:hover {
    background: var(--primary-dark);
}

.panel-helper {
    margin-top: 16px;
    color: var(--medium-gray);
}

.panel-alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.panel-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.panel-item {
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    padding: 18px;
    background: var(--off-white);
    box-shadow: var(--shadow-sm);
}

.panel-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.panel-item p {
    color: var(--medium-gray);
    font-size: 14px;
}

.panel-empty {
    color: var(--medium-gray);
}

.panel-footer {
    background: var(--white);
    border-top: 1px solid var(--panel-border);
    padding: 24px 0 40px;
    color: var(--medium-gray);
}

.panel-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .panel-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ====== Enhanced Dashboard Styles ====== */
.dashboard-shell {
    padding: 120px 20px 60px;
    min-height: calc(100vh - 80px); /* Adjust for footer/header if needed */
    background-color: var(--panel-bg);
}

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.dashboard-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.dashboard-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 0; /* Padding handled by children */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--panel-border);
    overflow: hidden;
}

.dashboard-card .card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dashboard-empty {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.dashboard-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    text-align: left;
}

.dashboard-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 16px 24px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--panel-border);
}

.dashboard-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover {
    background-color: #f8fafc;
}

.order-id {
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.order-code {
    font-size: 12px;
    color: #94a3b8;
    font-family: monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-odeme-bekleniyor {
    background-color: #eff6ff;
    color: #3b82f6;
}

.status-hazirlaniyor {
    background-color: #fff7ed;
    color: #f97316;
}

.status-odeme-alindi,
.status-siparis-tamamlandi {
    background-color: #f0fdf4;
    color: #22c55e;
}

.status-odeme-basarisiz,
.status-iptal {
    background-color: #fef2f2;
    color: #ef4444;
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    
    .dashboard-btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-table th, 
    .dashboard-table td {
        padding: 12px 16px;
    }
}
