:root {
    --primary-color: #1e3a8a;
    /* Valerdat Blue */
    --accent-color: #00B894;
    /* Success Green/Aquamarine */
    --bg-color: #f9fafb;
    /* Matches Tailwind bg-gray-50 */
    --text-color: #1f2937;
    /* Gray-800 */
    --border-color: #e5e7eb;
    /* Gray-200 */
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    font-size: 0.65rem;
    background-color: #000;
    color: var(--white);
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transform: translateY(2px);
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.user-info {
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Alerts */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-warning {
    background-color: #fefce8;
    border-color: #fde047;
    color: #854d0e;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card h2 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #FAFAFA;
    font-weight: 600;
    color: #636E72;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-DRAFT {
    background-color: #E2E3E5;
    color: #383D41;
}

.status-SUBMITTED {
    background-color: #CCE5FF;
    color: #004085;
}

.status-IN_REVIEW {
    background-color: #FFF3CD;
    color: #856404;
}

.status-APPROVED {
    background-color: #D4EDDA;
    color: #155724;
}

.status-DEPLOYED {
    background-color: var(--accent-color);
    color: var(--white);
}

.status-REJECTED {
    background-color: #F8D7DA;
    color: #721C24;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    font-family: inherit;
    /* Ensure buttons match body font */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: #E2E3E5;
    color: #636E72;
}

.btn-secondary:hover {
    background-color: #D6D8DB;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: #B2BEC3;
    font-size: 0.9rem;
}

.footer a {
    color: #B2BEC3;
    text-decoration: none;
}