/* ====================================
   YÖNETİM PANELİ — TURUNCU TEMA
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #fff4ea 0%, #ffe3cc 100%);
    min-height: 100vh;
    color: #172737;
}

.header {
    background: linear-gradient(135deg, #f57921 0%, #d9620f 100%);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(245, 121, 33, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.header h1 {
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 i { font-size: 30px; }

/* ====================================
   SİDEBAR LAYOUT
   ==================================== */
.has-sidebar { padding-left: 230px; }
.has-sidebar .header { padding-left: 24px; padding-right: 24px; }

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 230px;
    background: linear-gradient(180deg, #172737 0%, #0f1c29 100%);
    color: #fff;
    overflow-y: auto;
    z-index: 50;
    padding: 0;
    display: flex; flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.18);
}
.sidebar-brand {
    padding: 18px 20px 14px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}
.sidebar-brand .b1 { font-size: 14px; font-weight: 800; letter-spacing: 1px; }
.sidebar-brand .b2 { font-size: 10px; opacity: .8; margin-top: 3px; text-transform: uppercase; letter-spacing: 1.2px; }

.sidebar-user {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    background: rgba(0,0,0,0.08);
}
.sidebar-user .ad { font-weight: 700; font-size: 13px; }
.sidebar-user .yetki { opacity: .85; font-size: 11px; margin-top: 2px; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: .9;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.10);
    border-left-color: #ffd54f;
}
.sidebar-nav a.aktif {
    background: rgba(255, 213, 79, 0.18);
    border-left-color: #ffd54f;
    font-weight: 700;
}
.sidebar-nav .grup-baslik {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.55);
    padding: 14px 18px 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.15);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #c62828, #8e0000);
    color: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.sidebar-footer a:hover { background: linear-gradient(135deg, #8e0000, #5d0000); }

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px; left: 14px;
    width: 42px; height: 42px;
    background: #172737; color: #fff;
    border: none; border-radius: 8px;
    font-size: 20px;
    z-index: 60;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
    .has-sidebar { padding-left: 0; }
    .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
    .sidebar.acik { transform: translateX(0); }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .header { padding-left: 70px !important; }
}

.container {
    max-width: 1280px;
    margin: 25px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(245, 121, 33, 0.12);
    padding: 28px;
    margin-bottom: 22px;
    border-top: 4px solid #f57921;
}

.card-title {
    font-size: 20px;
    color: #172737;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffe3cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-weight: 600;
    color: #d84315;
    margin-bottom: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 2px solid #ffc597;
    border-radius: 8px;
    font-size: 14px;
    background: #fff9f4;
    color: #172737;
    transition: all 0.2s;
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f57921;
    background: white;
    box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.18);
}

.readonly-input {
    background: #ffe3cc !important;
    cursor: not-allowed;
    color: #243b52 !important;
}

.btn-group { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-family: inherit;
}
.btn i { font-size: 15px; }

.btn-primary  { background: linear-gradient(135deg, #f57921 0%, #d9620f 100%); }
.btn-success  { background: linear-gradient(135deg, #f57921 0%, #f57921 100%); }
.btn-warning  { background: linear-gradient(135deg, #ff9a4d 0%, #fb8c00 100%); }
.btn-info     { background: linear-gradient(135deg, #ff9800 0%, #f57921 100%); }
.btn-danger   { background: linear-gradient(135deg, #ef5350 0%, #c62828 100%); }
.btn-secondary{ background: linear-gradient(135deg, #5b6b7c 0%, #6d4c41 100%); }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 121, 33, 0.32);
}
.btn-danger:hover { box-shadow: 0 6px 16px rgba(198, 40, 40, 0.4); }
.btn-secondary:hover { box-shadow: 0 6px 16px rgba(109, 76, 65, 0.4); }

.btn-sm { padding: 6px 12px; font-size: 12px; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}
table thead {
    background: linear-gradient(135deg, #f57921 0%, #172737 100%);
    color: white;
}
table thead th {
    padding: 13px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
table tbody tr {
    border-bottom: 1px solid #ffe3cc;
    transition: background 0.15s;
}
table tbody tr:hover { background: #fff4ea; }
table tbody td {
    padding: 11px 10px;
    color: #172737;
    font-size: 13px;
    vertical-align: top;
}
table tbody tr:nth-child(even) { background: #fff9f4; }
table tbody tr:nth-child(even):hover { background: #fff4ea; }

.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: #fff4ea; color: #172737; border-left: 4px solid #f57921; }
.alert-danger  { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.alert-info    { background: #fff8e1; color: #f57921; border-left: 4px solid #ff9a4d; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px;
    border-radius: 6px;
    text-decoration: none;
    color: #d84315;
    background: white;
    border: 2px solid #ffc597;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 13px;
}
.pagination a:hover { background: #f57921; color: white; border-color: #f57921; }
.pagination .active {
    background: linear-gradient(135deg, #f57921 0%, #172737 100%);
    color: white;
    border-color: #172737;
}
.pagination .disabled { color: #d7ccc8; background: #efebe9; cursor: not-allowed; }

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}
.search-box { display: flex; gap: 8px; align-items: center; }
.search-box input {
    padding: 9px 13px;
    border: 2px solid #ffc597;
    border-radius: 8px;
    font-size: 13px;
    width: 280px;
    background: #fff9f4;
}
.search-box input:focus { outline: none; border-color: #f57921; background: white; }

.info-text { color: #d84315; font-size: 13px; font-weight: 500; }

.empty-state { text-align: center; padding: 45px 20px; color: #5b6b7c; }
.empty-state i { font-size: 56px; margin-bottom: 14px; color: #ffc597; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-ilk    { background: #e8f5e9; color: #2e7d32; }
.badge-orta   { background: #fff4ea; color: #f57921; }
.badge-lise   { background: #eef2f7; color: #172737; }
.badge-onayli   { background: #c8e6c9; color: #1b5e20; }
.badge-onaysiz  { background: #ffcdd2; color: #b71c1c; }
.badge-info     { background: #fff4ea; color: #172737; }
.badge-light    { background: #efebe9; color: #172737; border: 1px solid #d7ccc8; }

.field-group {
    background: #fff9f4;
    border: 2px dashed #ffc597;
    border-radius: 10px;
    padding: 16px;
    margin-top: 18px;
}
.field-group h3 {
    color: #172737;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.field-group .hint { color: #5b6b7c; font-size: 12px; margin-bottom: 12px; }

/* Dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 4px 16px rgba(245, 121, 33, 0.12);
    border-left: 5px solid #f57921;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(245, 121, 33, 0.22); }
.stat-card .ico {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a4d 0%, #f57921 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-card .ico.ilk   { background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%); }
.stat-card .ico.orta  { background: linear-gradient(135deg, #ff9a4d 0%, #f57921 100%); }
.stat-card .ico.lise  { background: linear-gradient(135deg, #5b7593 0%, #243b52 100%); }
.stat-card .ico.info  { background: linear-gradient(135deg, #ab47bc 0%, #6a1b9a 100%); }
.stat-card .lbl { font-size: 13px; color: #5b6b7c; font-weight: 500; }
.stat-card .num { font-size: 28px; color: #172737; font-weight: 700; line-height: 1; margin-top: 4px; }

.section-title {
    color: #172737;
    font-size: 18px;
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(245, 121, 33, 0.25);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border-top: 5px solid #f57921;
}
.login-card .icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f57921 0%, #172737 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    margin: 0 auto 18px;
    box-shadow: 0 6px 18px rgba(245, 121, 33, 0.35);
}
.login-card h2 { text-align: center; color: #172737; margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: #5b6b7c; font-size: 14px; margin-bottom: 22px; }
.login-card .form-group { margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .header { padding: 14px 18px; }
    .header h1 { font-size: 19px; }
    .header h1 i { font-size: 22px; }
    table { font-size: 11px; }
    .search-box input { width: 100%; }
    .stat-card { padding: 16px; }
    .stat-card .ico { width: 44px; height: 44px; font-size: 20px; }
    .stat-card .num { font-size: 22px; }
}

/* ===== Maraş Robotik renk teması ===== */
.header { border-bottom: 4px solid #f57921; }
.sidebar-nav a.aktif { border-left: 4px solid #f57921; }
