@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(0, 188, 212, 0.08), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(0, 150, 136, 0.06), transparent 35%),
        linear-gradient(180deg, #0d1b2a 0%, #1b2838 50%, #0f1d2e 100%);
    color: #e0e6ed;
    line-height: 1.6;
}

/* Navbar */
.top-shell {
    padding-top: 1.4rem;
}

.app-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 188, 212, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
    gap: 10px;
}

.app-navbar .brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: #00bcd4;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-navbar .brand .logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #00bcd4, #00838f);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.app-navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.app-navbar .nav-links a {
    color: rgba(224, 230, 237, 0.7);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.app-navbar .nav-links a:hover,
.app-navbar .nav-links a.active {
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.08);
}

/* Main container */
#main {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page card */
.page-card {
    background: linear-gradient(160deg, rgba(27, 40, 56, 0.8), rgba(15, 29, 46, 0.9));
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.page-card .card-body {
    padding: 32px 36px;
}

/* Typography */
.hero-title {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00bcd4, #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: rgba(224, 230, 237, 0.75);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-lead a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.hero-lead a:hover {
    color: #4dd0e1;
}

.section-title {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #e0e6ed;
}

.section-subtitle {
    color: rgba(224, 230, 237, 0.6);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Status message */
.status-message {
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(0, 188, 212, 0.06);
    border-left: 3px solid #00bcd4;
    border-radius: 0 8px 8px 0;
    color: #80deea;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Form */
.authform {
    margin-top: 12px;
}

.authform fieldset {
    border: 1px solid rgba(0, 188, 212, 0.15);
    border-radius: 10px;
    padding: 20px;
    background: rgba(13, 27, 42, 0.4);
}

.authform legend {
    width: auto;
    padding: 0 12px;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #00bcd4;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(224, 230, 237, 0.7);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 8px;
    color: #e0e6ed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.form-control::placeholder {
    color: rgba(224, 230, 237, 0.3);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00bcd4, #00838f);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: linear-gradient(135deg, #26c6da, #0097a7);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.3);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* Table */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table thead th {
    background: rgba(0, 188, 212, 0.08);
    color: #00bcd4;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 188, 212, 0.15);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e0e6ed;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.table tbody tr {
    transition: background 0.15s;
}

.table tbody tr:hover {
    background: rgba(0, 188, 212, 0.04);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.mb-0 { margin-bottom: 0; }

/* Data type badge */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-internal {
    background: rgba(0, 188, 212, 0.15);
    color: #4dd0e1;
}

.badge-restricted {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
}

/* Footer info */
.info-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: rgba(224, 230, 237, 0.3);
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .page-card .card-body {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .app-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .table {
        font-size: 0.78rem;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 10px;
    }
}