/* SOFD Tools */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header / Nav */

header {
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid #006E73;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    display: block;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #006E73;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: #eef2ff;
    color: #006E73;
}

/* Main */

main {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    width: 100%;
    flex: 1;
}

h1 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* Cards */

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-body {
    padding: 1.25rem;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tbody tr:nth-child(even) {
    background: #f8fafc;
}

tbody tr:hover {
    background: #eef2ff;
}

td a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

td a:hover {
    text-decoration: underline;
}

/* Forms */

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1a1a1a;
    background: #fff;
}

.input:focus {
    outline: none;
    border-color: #006E73;
    box-shadow: 0 0 0 2px rgba(0, 110, 115, 0.15);
}

.input::placeholder {
    color: #94a3b8;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
    background: #006E73;
    color: #fff;
    border-color: #006E73;
}

.btn-primary:hover {
    background: #005a5e;
    border-color: #005a5e;
}

/* Badges */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-available {
    background: #dcfce7;
    color: #166534;
}

.badge-taken {
    background: #fee2e2;
    color: #991b1b;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Status text */

.status-available {
    color: #006E73;
    font-weight: 700;
}

.status-taken {
    color: #991b1b;
    font-weight: 700;
}

/* Alert card */

.alert-denied {
    border-left: 4px solid #dc2626;
}

.alert-denied h2 {
    color: #991b1b;
    margin-bottom: 0.5rem;
}

/* Footer */

footer {
    text-align: right;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 2rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

/* Description text */

.description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.description p + p {
    margin-top: 0.75rem;
}

/* Responsive */

@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
    }

    header nav {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .form-row {
        flex-direction: column;
    }

    table {
        font-size: 0.85rem;
    }
}
