/* ZeroMt2 Admin Panel - temel stil sayfasi.
   Tamamen offline calisir: harici font/CDN yok, sadece sistem font stack'i. */

:root {
    --bg: #14161c;
    --bg-elevated: #1b1e26;
    --bg-elevated-2: #232732;
    --border: #2e3340;
    --text: #e7e9ee;
    --text-muted: #9aa1b1;
    --accent: #4f7cff;
    --accent-hover: #3d68eb;
    --danger: #ff6b6b;
    --danger-bg: #3a1f22;
    --success: #4caf7d;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---- Sidebar layout ---- */

.app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    padding: 20px;
    letter-spacing: 0.01em;
}

.sidebar-title span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.sidebar-title:hover {
    text-decoration: none;
    color: var(--text);
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 4px 12px 16px;
    flex: 1;
}

.sidebar-nav li {
    display: block;
}

.sidebar-nav a {
    display: block;
    padding: 7px 12px;
    margin: 1px 0;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--bg-elevated-2);
    text-decoration: none;
    color: var(--text);
}

.sidebar-nav a.active {
    background: var(--bg-elevated-2);
    color: var(--text);
    border-left-color: var(--accent);
}

.sidebar-section {
    padding: 18px 12px 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    opacity: 0.7;
}

.sidebar-nav li:first-child + .sidebar-section {
    padding-top: 8px;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-user {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer a {
    font-size: 13px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ---- Layout ---- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ---- Card ---- */

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card h1 {
    margin-top: 0;
    font-size: 20px;
}

.muted {
    color: var(--text-muted);
}

/* ---- Login page ---- */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.login-card {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 19px;
    text-align: center;
}

.login-card label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    margin-top: 10px;
}

/* ---- Form controls ---- */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: var(--bg-elevated-2);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.1);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    margin-top: 18px;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

/* ---- Messages ---- */

.error-message {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 0 6px 0;
}

.success-message {
    background: #1c3327;
    color: var(--success);
    border: 1px solid var(--success);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 0 6px 0;
}

/* ---- Tables (teammate pages can reuse) ---- */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    background: var(--bg-elevated-2);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:last-child td {
    border-bottom: none;
}
