﻿:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --bg: #eef2f7;
    --text: #111827;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
header {
    background: linear-gradient(90deg, #0d6efd, #2563eb);
    padding: 14px 32px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

/* NAV */
nav {
    background: #ffffff;
    padding: 0 32px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

nav a {
    display: inline-block;
    padding: 10px 0;
    font-size: 16px;
    text-decoration: none;
    color: #374151;
    position: relative;
}

    nav a:hover {
        color: var(--primary-dark);
    }

    nav a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 4px;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width .2s;
    }

    nav a:hover::after {
        width: 100%;
    }

/* CONTENT LAYOUT */
.layout {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

/* CARD */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
}

/* TABLE */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    font-size: 14px;
}

    table.data-table th,
    table.data-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    table.data-table th {
        background: #f3f4f6;
        font-weight: 600;
    }

    table.data-table tr:nth-child(even) td {
        background: #f9fafb;
    }

/* INPUT GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.field input[type="text"],
.field input[type="password"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .15);
}

/* BUTTON */
.btn-primary {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s, transform .05s;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

    .btn-primary:active {
        transform: translateY(1px);
    }
