/* VOLKER SAVUNMA — Admin Panel CSS */
:root {
    --red:#e02020; --red-dark:#b51a1a;
    --black:#0a0a0a; --black2:#111; --black3:#1a1a1a; --black4:#222;
    --gray:#888; --white:#fff; --white2:#f0f0f0;
    --green:#22c55e; --orange:#f59e0b;
    --sidebar:240px;
}
*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Inter','Segoe UI',sans-serif;background:var(--black2);color:var(--white);font-size:14px;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;}

/* Layout */
.admin-layout{display:flex;min-height:100vh;}
.admin-sidebar{width:var(--sidebar);background:var(--black);border-right:1px solid rgba(255,255,255,0.06);position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;z-index:100;overflow-y:auto;}
.admin-main{margin-left:var(--sidebar);flex:1;display:flex;flex-direction:column;min-height:100vh;}
.admin-topbar{background:var(--black);border-bottom:1px solid rgba(255,255,255,0.06);padding:0 32px;height:64px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;}
.admin-content{padding:32px;flex:1;}

/* Sidebar */
.sidebar-logo{padding:24px 20px;border-bottom:1px solid rgba(255,255,255,0.06);}
.sidebar-logo-inner{display:flex;align-items:center;gap:10px;}
.sidebar-logo-icon{width:32px;height:32px;background:var(--red);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;flex-shrink:0;}
.sidebar-logo-text{font-size:13px;font-weight:800;letter-spacing:0.08em;}
.sidebar-logo-text small{display:block;font-size:9px;color:var(--red);letter-spacing:0.15em;font-weight:600;}
.sidebar-nav{padding:16px 0;flex:1;}
.sidebar-section{padding:8px 20px;font-size:10px;font-weight:700;letter-spacing:0.15em;text-transform:uppercase;color:var(--gray);margin-top:8px;}
.sidebar-link{display:flex;align-items:center;gap:10px;padding:11px 20px;font-size:13px;color:#aaa;transition:all 0.2s;border-left:3px solid transparent;}
.sidebar-link:hover{color:var(--white);background:rgba(255,255,255,0.04);}
.sidebar-link.active{color:var(--white);background:rgba(224,32,32,0.08);border-left-color:var(--red);}
.sidebar-link svg{width:16px;height:16px;flex-shrink:0;}
.sidebar-footer{padding:16px 20px;border-top:1px solid rgba(255,255,255,0.06);}
.sidebar-footer a{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--gray);transition:all 0.2s;}
.sidebar-footer a:hover{color:var(--red);}

/* Cards */
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:32px;}
.stat-card{background:var(--black3);border:1px solid rgba(255,255,255,0.06);border-radius:8px;padding:24px;}
.stat-card-num{font-size:32px;font-weight:900;color:var(--red);}
.stat-card-label{font-size:11px;text-transform:uppercase;letter-spacing:0.1em;color:var(--gray);margin-top:6px;}

/* Table */
.admin-card{background:var(--black3);border:1px solid rgba(255,255,255,0.06);border-radius:8px;overflow:hidden;margin-bottom:24px;}
.admin-card-head{padding:20px 24px;border-bottom:1px solid rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:space-between;}
.admin-card-head h2{font-size:15px;font-weight:700;}
table{width:100%;border-collapse:collapse;}
th{padding:12px 16px;text-align:left;font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--gray);background:var(--black4);border-bottom:1px solid rgba(255,255,255,0.06);}
td{padding:14px 16px;border-bottom:1px solid rgba(255,255,255,0.04);font-size:13px;color:#ccc;vertical-align:middle;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:rgba(255,255,255,0.02);}
.badge{display:inline-block;padding:3px 10px;border-radius:100px;font-size:10px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;}
.badge-green{background:rgba(34,197,94,0.1);color:var(--green);}
.badge-gray{background:rgba(255,255,255,0.06);color:var(--gray);}
.badge-red{background:rgba(224,32,32,0.1);color:var(--red);}

/* Forms */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.form-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;}
.form-full{grid-column:1/-1;}
.admin-form-group{display:flex;flex-direction:column;gap:6px;}
.admin-form-group label{font-size:11px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gray);}
.admin-form-group input,.admin-form-group textarea,.admin-form-group select{background:var(--black4);border:1px solid rgba(255,255,255,0.08);border-radius:6px;padding:12px 14px;color:var(--white);font-family:inherit;font-size:13px;outline:none;transition:all 0.2s;}
.admin-form-group input:focus,.admin-form-group textarea:focus,.admin-form-group select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(224,32,32,0.1);}
.admin-form-group textarea{resize:vertical;min-height:100px;}
.admin-form-group select option{background:var(--black4);}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 20px;border-radius:6px;font-size:12px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;cursor:pointer;border:none;transition:all 0.2s;}
.btn-primary{background:var(--red);color:#fff;}
.btn-primary:hover{background:var(--red-dark);}
.btn-outline{background:transparent;color:#aaa;border:1px solid rgba(255,255,255,0.12);}
.btn-outline:hover{border-color:var(--red);color:var(--red);}
.btn-danger{background:rgba(224,32,32,0.1);color:var(--red);border:1px solid rgba(224,32,32,0.2);}
.btn-danger:hover{background:var(--red);color:#fff;}
.btn-sm{padding:7px 14px;font-size:11px;}
.btn-green{background:rgba(34,197,94,0.1);color:var(--green);border:1px solid rgba(34,197,94,0.2);}

/* Page header */
.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;}
.page-header h1{font-size:22px;font-weight:800;}
.page-header p{font-size:13px;color:var(--gray);margin-top:4px;}

/* Alert */
.alert{padding:12px 16px;border-radius:6px;font-size:13px;margin-bottom:20px;}
.alert-success{background:rgba(34,197,94,0.1);border:1px solid rgba(34,197,94,0.3);color:#4ade80;}
.alert-error{background:rgba(224,32,32,0.1);border:1px solid rgba(224,32,32,0.3);color:var(--red);}

/* Image preview */
.img-preview{width:80px;height:60px;object-fit:cover;border-radius:4px;background:var(--black4);}

/* Pagination */
.pagination{display:flex;gap:4px;justify-content:center;margin-top:24px;}
.pagination a,.pagination span{padding:8px 14px;background:var(--black3);border:1px solid rgba(255,255,255,0.06);border-radius:4px;font-size:12px;transition:all 0.2s;}
.pagination a:hover,.pagination .current{background:var(--red);border-color:var(--red);color:#fff;}

/* Responsive */
@media(max-width:900px){
    .admin-sidebar{transform:translateX(-100%);transition:transform 0.3s;}
    .admin-sidebar.open{transform:translateX(0);}
    .admin-main{margin-left:0;}
    .stats-grid{grid-template-columns:1fr 1fr;}
    .form-grid{grid-template-columns:1fr;}
}
