/* Admin Panel - Toner İstanbul */
*, *::before, *::after { margin:0; padding:0; box-sizing: border-box; }
body { font-family: -apple-system, sans-serif; background: #f0f2f5; color: #333; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* Login */
.login-pg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #cc0000, #1a3c6e);
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 360px;
    max-width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.login-box h1 { font-size: 26px; color: #cc0000; margin-bottom: 5px; font-family: Georgia, serif; }
.login-box h1 span { color: #1a3c6e; }
.login-box h2 { font-size: 16px; color: #777; margin-bottom: 20px; }
.login-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}
.login-box a {
    display: block;
    margin-top: 10px;
    color: #2980b9;
    font-size: 13px;
}

.alert {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

.sq { font-weight: 600; margin-bottom: 10px; color: #333; }

/* Admin Layout */
.adm-layout { display: flex; min-height: 100vh; }

.adm-side {
    width: 240px;
    background: #1a3c6e;
    color: #fff;
    padding: 20px 0;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: left 0.3s;
    left: 0;
}

@media (max-width: 768px) {
    .adm-side { left: -240px; }
    .adm-side.open { left: 0; }
}

.adm-logo {
    font-size: 22px;
    font-weight: 700;
    padding: 0 20px 20px;
    color: #cc0000;
    border-bottom: 1px solid #2c4b7e;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}
.adm-logo span { color: #fff; }

.adm-side nav a {
    display: block;
    padding: 12px 20px;
    color: #b8c5d6;
    font-size: 14px;
    transition: 0.2s;
}
.adm-side nav a:hover, .adm-side nav a.act {
    background: #143258;
    color: #fff;
    border-left: 3px solid #cc0000;
    padding-left: 17px;
}
.adm-side nav a i { width: 22px; margin-right: 8px; }
.adm-side .out {
    border-top: 1px solid #2c4b7e;
    margin-top: 10px;
    color: #ff6b6b;
}

.adm-main {
    flex: 1;
    margin-left: 240px;
}
@media (max-width: 768px) {
    .adm-main { margin-left: 0; }
}

.adm-top {
    background: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.adm-top button {
    background: none;
    border: none;
    font-size: 20px;
    color: #555;
}
.adm-top a { color: #2980b9; font-size: 13px; }

.adm-content { padding: 20px; }
.adm-content h1 { font-size: 22px; margin-bottom: 20px; color: #333; }
.adm-content h2 { font-size: 18px; margin-bottom: 15px; color: #444; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
@media (min-width: 600px) {
    .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.stat i { font-size: 28px; color: #cc0000; margin-bottom: 8px; display: block; }
.sn { font-size: 28px; font-weight: 700; display: block; color: #333; }
.sl { font-size: 12px; color: #888; }

/* Quick actions */
.qacts {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}
.qacts h2 { margin-bottom: 15px; font-size: 16px; }
.abtn {
    display: inline-block;
    background: #f0f2f5;
    padding: 10px 16px;
    border-radius: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}
.abtn:hover { background: #cc0000; color: #fff; }

/* Forms */
.aform {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}
.aform label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-top: 12px;
}
.aform input,
.aform select,
.aform textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 2px;
    font-family: inherit;
}
.aform textarea { resize: vertical; }

.frow {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.frow > div { flex: 1; min-width: 150px; }

.btn-p {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
}
.btn-p:hover { background: #a00000; }

.btn-s {
    background: #f0f0f0;
    color: #555;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 15px;
    margin-left: 10px;
}

.btn-danger { background: #e74c3c; color: #fff; }

.acard {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Tables */
.atbl-wrap { overflow-x: auto; background: #fff; border-radius: 10px; }
.atbl {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.atbl th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-size: 13px;
    color: #555;
    border-bottom: 2px solid #eee;
}
.atbl td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.atbl tr:hover { background: #f8f9fa; }

.chip {
    display: inline-block;
    background: #e8f4fd;
    color: #2980b9;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
}

.prog-bar {
    height: 24px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}
.prog-fill {
    height: 100%;
    background: #cc0000;
    width: 0;
    transition: width 0.3s;
    border-radius: 12px;
}

.status-new { color: #ff9800; font-weight: 600; }
.status-preparing { color: #2980b9; font-weight: 600; }
.status-delivered { color: #27ae60; font-weight: 600; }
.status-cancelled { color: #e74c3c; font-weight: 600; }
