/* ===== PANEL CSS — PREMIUM DARK-LIGHT HYBRID ===== */

body.public-body {
    background: #f0f2f5;
}

/* ===== NAV ===== */
.panel-nav {
    background: #111827;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.panel-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pn-brand {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pn-brand svg { stroke: #818cf8; }

.pn-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.pn-link {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.12s;
}

.pn-link:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; }
.pn-link.active { background: rgba(129,140,248,0.15); color: #a5b4fc; font-weight: 500; }

.pn-right { display: flex; align-items: center; gap: 12px; }
.pn-logout { font-size: 12px; color: #64748b; text-decoration: none; }
.pn-logout:hover { color: #f87171; }

/* ===== CONTAINER ===== */
.panel-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ===== WELCOME ===== */
.panel-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    padding: 28px 32px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(30,27,75,0.3);
}

.panel-welcome h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.panel-welcome p {
    font-size: 13px;
    color: #a5b4fc;
    margin-top: 4px;
}

.welcome-badge {
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #c4b5fd;
    backdrop-filter: blur(4px);
}

/* ===== STATS ===== */
.panel-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.ps-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.ps-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.ps-card .ps-value {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.ps-card .ps-value small { font-size: 14px; font-weight: 600; }
.ps-card .ps-label { font-size: 11px; color: #6b7280; margin-top: 4px; font-weight: 500; }
.ps-card-warning { border-left: 3px solid #d97706; }
.ps-card-warning .ps-value { color: #d97706; }

/* ===== GRID ===== */
.panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

/* ===== SECTION CARD ===== */
.panel-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.section-head h2 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.see-all { font-size: 12px; color: #6366f1; text-decoration: none; font-weight: 500; }
.see-all:hover { color: #4338ca; }

.notif-badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* ===== JOB ITEMS ===== */
.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    transition: all 0.12s;
}

.job-item:hover { background: #f3f4f6; border-color: #e5e7eb; }

.job-item-title { font-size: 14px; font-weight: 600; color: #111827; }

.job-item-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.job-deadline { font-size: 11px; color: #d97706; margin-top: 4px; font-weight: 500; }
.job-deadline.urgent { color: #dc2626; }

.job-item-btn {
    padding: 7px 16px;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.12s;
}

.job-item-btn:hover { background: #1f2937; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ===== NOTIFICATIONS ===== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 8px;
    transition: background 0.12s;
}

.notif-item:hover { background: #f9fafb; }
.notif-item.unread { background: #eef2ff; border: 1px solid #e0e7ff; }

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item.unread .notif-icon { background: #c7d2fe; }

.notif-content { flex: 1; }
.notif-title { font-size: 13px; font-weight: 600; color: #111827; }
.notif-text { font-size: 12px; color: #6b7280; margin-top: 2px; line-height: 1.5; }

/* ===== PERFORMANCE ===== */
.perf-grid { display: flex; flex-direction: column; gap: 14px; }

.perf-item {}
.perf-bar { height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.perf-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.perf-label { font-size: 12px; color: #6b7280; display: flex; justify-content: space-between; }
.perf-label strong { color: #111827; font-weight: 700; }

/* ===== BADGES ===== */
.badges-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}

.badge-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid;
    background: transparent;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.empty-state svg { margin-bottom: 8px; opacity: 0.3; }
.empty-state p { font-size: 13px; }

.empty-cta {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 20px;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.12s;
}

.empty-cta:hover { background: #1f2937; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

/* ===== FORMS IN PANEL ===== */
.panel-section .form-group { margin-bottom: 14px; }
.panel-section .form-group label { font-size: 12px; font-weight: 500; color: #374151; margin-bottom: 5px; display: block; }
.panel-section .form-group input,
.panel-section .form-group textarea,
.panel-section .form-group select {
    width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px;
    font-size: 13px; font-family: inherit; color: #111827; background: #fff;
    transition: border-color 0.15s;
}
.panel-section .form-group input:focus,
.panel-section .form-group textarea:focus {
    outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

/* ===== ALERT ===== */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .panel-stats { grid-template-columns: 1fr 1fr; }
    .panel-grid { grid-template-columns: 1fr; }
    .pn-links { display: none; }
    .panel-welcome { padding: 20px; }
    .panel-welcome h1 { font-size: 20px; }
}

@media (max-width: 480px) {
    .panel-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ps-card { padding: 14px 12px; }
    .ps-card .ps-value { font-size: 20px; }
}

/* ===== MOBILE NAV ===== */
.pn-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .pn-mobile-toggle { display: block; }
    .pn-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #111827;
        padding: 12px 16px;
        flex-direction: column;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }
    .pn-links.open { display: flex; }
    .pn-link { padding: 10px 14px; }
    .pn-right { display: none; }
    .panel-nav-inner { position: relative; }
}

/* ===== MOBİL CİLALAMA ===== */
@media (max-width: 480px) {
    .panel-container { padding: 16px 14px 48px; }
    
    .panel-welcome {
        padding: 20px;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .panel-welcome h1 { font-size: 18px; }
    .welcome-badge { align-self: flex-start; }
    
    .ps-card { padding: 14px 10px; }
    .ps-card .ps-value { font-size: 18px; }
    .ps-card .ps-label { font-size: 10px; }
    
    .panel-section { padding: 16px; border-radius: 12px; }
    .section-head h2 { font-size: 14px; }
    
    .job-item { padding: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .job-item-btn { align-self: flex-end; }
    
    .notif-item { padding: 10px; gap: 10px; }
    .notif-icon { width: 28px; height: 28px; }
    
    .perf-grid { gap: 10px; }
    
    .badges-row { gap: 6px; }
    .badge-pill { font-size: 10px; padding: 3px 8px; }
}

/* Orta ekran (tablet) */
@media (min-width: 481px) and (max-width: 768px) {
    .panel-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .panel-grid { grid-template-columns: 1fr; }
}

/* İş detay sayfası mobil */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 300px"] {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"][style*="gap:10px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth transitions */
.pn-link, .job-item, .ps-card, .notif-item, .btn {
    transition: all 0.15s ease;
}

/* Focus states for accessibility */
input:focus, textarea:focus, select:focus, button:focus {
    outline: 2px solid rgba(99, 102, 241, 0.3);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
