/* ====================================
   HAKEM PANELİ — YEŞİL TEMA
   ==================================== */

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

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

.header {
    background: linear-gradient(135deg, #243b52 0%, #172737 100%);
    color: white;
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 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 (yeşil tema)
   ==================================== */
.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, #243b52 0%, #172737 100%);
    color: #fff;
    overflow-y: auto;
    z-index: 50;
    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: #e1e6ed; }
.sidebar-nav a.aktif { background: rgba(200, 230, 201, 0.18); border-left-color: #e1e6ed; 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: #243b52; 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(36, 59, 82, 0.12);
    padding: 28px;
    margin-bottom: 22px;
    border-top: 4px solid #243b52;
}
.card-title {
    font-size: 20px;
    color: #172737;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e6ed;
    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: #243b52;
    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 #c3ccd8;
    border-radius: 8px;
    font-size: 14px;
    background: #f7f9fb;
    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: #243b52;
    background: white;
    box-shadow: 0 0 0 3px rgba(36, 59, 82, 0.18);
}
.readonly-input {
    background: #e1e6ed !important;
    cursor: not-allowed;
    color: #2e3e36 !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, #243b52 0%, #172737 100%); }
.btn-success  { background: linear-gradient(135deg, #f57921 0%, #243b52 100%); }
.btn-warning  { background: linear-gradient(135deg, #ff9a4d 0%, #f57921 100%); }
.btn-info     { background: linear-gradient(135deg, #5b7593 0%, #243b52 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(36, 59, 82, 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, #243b52 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 #e1e6ed; transition: background 0.15s; }
table tbody tr:hover { background: #f4f6f9; }
table tbody td { padding: 11px 10px; color: #172737; font-size: 13px; vertical-align: top; }
table tbody tr:nth-child(even) { background: #f7f9fb; }
table tbody tr:nth-child(even):hover { background: #f4f6f9; }

.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: #f4f6f9; color: #172737; border-left: 4px solid #243b52; }
.alert-danger  { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.alert-info    { background: #f7f9fb; color: #243b52; 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: #243b52;
    background: white;
    border: 2px solid #c3ccd8;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 13px;
}
.pagination a:hover { background: #243b52; color: white; border-color: #243b52; }
.pagination .active {
    background: linear-gradient(135deg, #243b52 0%, #172737 100%);
    color: white;
    border-color: #172737;
}

.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 #c3ccd8;
    border-radius: 8px;
    font-size: 13px;
    width: 280px;
    background: #f7f9fb;
}
.search-box input:focus { outline: none; border-color: #243b52; background: white; }
.info-text { color: #243b52; 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: #c3ccd8; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.badge-ilk    { background: #f4f6f9; color: #243b52; }
.badge-orta   { background: #fff4ea; color: #f57921; }
.badge-lise   { background: #eef2f7; color: #172737; }
.badge-info   { background: #f4f6f9; color: #172737; }
.badge-light  { background: #efebe9; color: #172737; border: 1px solid #d7ccc8; }

.field-group {
    background: #f7f9fb;
    border: 2px dashed #c3ccd8;
    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; }

.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(36, 59, 82, 0.25);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    border-top: 5px solid #243b52;
}
.login-card .icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #243b52 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(36, 59, 82, 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%; }
}

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