/* Fırın Admin — Linear/Vercel inspired dark theme */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       background: #0a0a0a; color: #e8e8e8; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 28px;
    background: #141414; border-bottom: 1px solid #2a2a2a;
}
.topbar .brand { font-size: 18px; font-weight: 700; color: #fb923c; }
.topbar nav { display: flex; gap: 4px; flex: 1; margin-left: 20px; }
.topbar nav a {
    color: #8e8e8e; text-decoration: none; padding: 8px 14px;
    border-radius: 8px; font-size: 14px; font-weight: 500;
    transition: all .15s;
}
.topbar nav a:hover { background: #1c1c1c; color: #e8e8e8; }
.topbar nav a.active { background: #fb923c22; color: #fb923c; }
.btn-link { background: none; border: 0; color: #8e8e8e; cursor: pointer;
            font-size: 14px; padding: 8px 14px; }
.btn-link:hover { color: #fb923c; }

.content { padding: 32px 40px; max-width: 1400px; width: 100%; margin: 0 auto; }

h1 { font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.subtitle { color: #8e8e8e; font-size: 14px; margin-bottom: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
         gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: #141414; border: 1px solid #2a2a2a; border-radius: 12px;
    padding: 18px 20px;
}
.stat-card .label { color: #8e8e8e; font-size: 12px; text-transform: uppercase;
                    letter-spacing: .04em; margin-bottom: 8px; }
.stat-card .value { font-size: 28px; font-weight: 700; color: #fb923c; }

.card { background: #141414; border: 1px solid #2a2a2a; border-radius: 12px;
        padding: 24px; margin-bottom: 24px; }
.card-header { display: flex; align-items: center; justify-content: space-between;
               margin-bottom: 18px; }
.card-header h2 { margin: 0; font-size: 16px; font-weight: 600; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase;
     letter-spacing: .04em; color: #8e8e8e; border-bottom: 1px solid #2a2a2a; }
td { padding: 12px; font-size: 13px; border-bottom: 1px solid #1c1c1c; }
tr:hover td { background: #1c1c1c; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px;
         font-weight: 600; }
.badge-active { background: #10b98122; color: #10b981; }
.badge-revoked { background: #ef444422; color: #ef4444; }
.badge-expired { background: #8e8e8e22; color: #8e8e8e; }
.badge-warn { background: #f59e0b22; color: #f59e0b; }

button.primary { background: linear-gradient(90deg, #f97316, #ef4444);
                 color: white; border: 0; padding: 10px 18px; border-radius: 8px;
                 font-size: 13px; font-weight: 600; cursor: pointer; }
button.primary:hover { opacity: .9; }
button.secondary { background: #242424; color: #e8e8e8; border: 1px solid #2a2a2a;
                   padding: 8px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; }
button.secondary:hover { background: #2a2a2a; }
button.danger { background: #ef444422; color: #ef4444; border: 1px solid #ef4444;
                padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }
button.danger:hover { background: #ef444444; }

input, select, textarea {
    width: 100%; box-sizing: border-box; background: #242424; border: 1px solid #2a2a2a;
    color: #fff; padding: 10px 12px; border-radius: 8px; font-size: 14px;
    margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #fb923c; }
label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
        color: #8e8e8e; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex;
            align-items: center; justify-content: center; z-index: 100; }
.modal { background: #141414; border: 1px solid #2a2a2a; border-radius: 12px;
         padding: 28px; width: 460px; max-width: 90%; }
.modal h3 { margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.key-display { background: #fb923c22; border: 1px solid #fb923c; border-radius: 8px;
               padding: 14px; font-family: Consolas, monospace; font-size: 18px;
               font-weight: 700; color: #fb923c; text-align: center; letter-spacing: 2px;
               margin: 14px 0; }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0;
                   background: #ef4444; color: white; padding: 14px; }
#blazor-error-ui[style*="display: block"] { display: block !important; }
