@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Exo+2:wght@300;400;600&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Exo 2', sans-serif;
    font-weight: 300;
    background-color: #080d18;
    color: #b8cce0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 2rem;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(61,142,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,142,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

h1, h2, h3 {
    font-family: 'Share Tech Mono', monospace;
    font-weight: normal;
    color: #e8f4ff;
    letter-spacing: 0.04em;
}

h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }
h3 { font-size: 1rem;   margin-bottom: 0.8rem; }

h2::before {
    content: '// ';
    color: #3d8eff;
}

p { margin-bottom: 0.75rem; }

a {
    color: #3d8eff;
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: #00c8ff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

form {
    background: #0d1526;
    border: 1px solid #1a2d4f;
    padding: 1.75rem;
    max-width: 640px;
}

label {
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #3d8eff;
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    background: #080d18;
    border: 1px solid #1a2d4f;
    color: #e8f4ff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.875rem;
    padding: 0.55rem 0.8rem;
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 1.25rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #3d8eff;
}

input::placeholder,
textarea::placeholder {
    color: #5a7a9a;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5) sepia(1) saturate(3) hue-rotate(190deg);
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d8eff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    display: inline-block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

button[type="submit"] {
    background: #3d8eff;
    color: #000;
}

button[type="submit"]:hover {
    background: #00c8ff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead tr {
    background: #111d35;
    border-bottom: 2px solid #2a4a7f;
}

thead th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3d8eff;
    white-space: nowrap;
}

thead th a {
    color: #3d8eff;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

thead th a:hover {
    color: #00c8ff;
}

tbody tr {
    border-bottom: 1px solid #1a2d4f;
    transition: background 0.1s;
}

tbody tr:hover {
    background: #0d1526;
}

tbody td {
    padding: 0.6rem 1rem;
    color: #b8cce0;
    vertical-align: top;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td[colspan] {
    text-align: center;
    color: #5a7a9a;
    font-family: 'Share Tech Mono', monospace;
    padding: 2rem;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid #1a2d4f;
    padding-bottom: 0;
}

nav a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
    color: #add1f3;
    border-bottom-color: #2a4a7f;
}

nav a.active {
    color: #3d8eff;
    border-bottom-color: #3d8eff;
}

@media (max-width: 640px) {
    body { padding: 1rem; }
    form { padding: 1.25rem; }
    thead th, tbody td { padding: 0.5rem 0.65rem; }
}

.logout-btn {
    margin-left: auto;
    color: #fd5e5e;
}

.logout-btn:hover {
    color: #ff7676;
}

.header {
    display:flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1rem;
    background-color: #0f3a5981;
    border-radius: 1rem;
    padding: 0.5rem 0.5rem;
}

.center {
    display:flex;
    justify-content: center;
}

.center * {
    flex-grow: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.row {
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.row button {
    display: block;
    width: 20rem;
    margin-bottom: 5rem;
    padding: 1.2rem 0.8rem;
    font-size: 1.2rem;
    border-radius: 1rem;
    background-color: #a9bdcb;
}

.row button:hover {
    background-color: #e1f2ff;
}