/* === Genel layout === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050608;
    color: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
    width: 230px;
    background: #050608;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #f3f4f6;
    margin-bottom: 28px;
}

.sidebar-logo span {
    color: #fbbf24;
}

.sidebar-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    margin: 16px 0 6px 4px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #e5e7eb;
    opacity: 0.85;
    transition: background 0.12s ease, opacity 0.12s ease, transform 0.1s ease;
}

.sidebar-link:hover {
    background: rgba(248, 250, 252, 0.06);
    opacity: 1;
    transform: translateX(1px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    font-weight: 600;
    opacity: 1;
}

.sidebar-link-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(249, 250, 251, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* === Main alanı === */
.main {
    flex: 1;
    background: radial-gradient(circle at top, #0b1120, #020617);
    padding: 18px 26px 26px;
}

/* === Top bar === */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #9ca3af;
}

.badge-user {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 12px;
}

/* === Kartlar === */
.cards-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 180px;
    min-width: 180px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(55, 65, 81, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.7);
    background: radial-gradient(circle at 30% 0, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ecfdf5;
    font-size: 16px;
}

.card-content-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
}

.card-content-value {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}

/* === Content alanı === */
.content {
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 16px;
    padding: 16px 18px 20px;
    border: 1px solid rgba(31, 41, 55, 0.9);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.content-title {
    font-size: 16px;
    font-weight: 500;
}

.content-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

/* === Form elemanları === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.form-group label {
    color: #e5e7eb;
}

.input {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    padding: 8px 10px;
    color: #f9fafb;
    font-size: 13px;
    outline: none;
}

.input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.7);
}

.button-primary {
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(248, 181, 71, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.button-primary:hover {
    filter: brightness(1.05);
}

/* === Tablo === */
.table-wrapper {
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table thead {
    background: rgba(15, 23, 42, 0.96);
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.8);
    text-align: left;
}

.table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.86);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    display: inline-block;
}

.status-dot.off {
    background: #ef4444;
}

/* === Login sayfası === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #020617, #000000);
}

.login-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 22px 24px;
    width: 320px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.login-title {
    font-size: 18px;
    margin-bottom: 14px;
}

.login-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
}
