:root {
    --primary-blue: #3269D9;
    --primary-blue-hover: #2557B4;
    --success-green: #36BF8D;
    --success-green-hover: #2A9F6E;
    --dark-bg: #141926;
    --light-bg: #F2F2F2;
    --border-gray: #E0E0E0;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --error-red: #EF4444;
    --warning-yellow: #F59E0B;
}

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

/* Typography */
h1,
h2,
h3 {
    margin-top: 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--dark-bg);
}

.login-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 100%;
}

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

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

.btn-success:hover {
    background-color: var(--success-green-hover);
}

/* Home */
.navbar {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 15px 0;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-group {
    flex: 1;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: var(--light-bg);
    color: var(--text-gray);
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Alerts */
.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #FEE2E2;
    color: var(--error-red);
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: var(--success-green);
    border: 1px solid #A7F3D0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    background-color: var(--white);
    cursor: pointer;
}

.pagination button.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: var(--warning-yellow);
}

/* Logo Styles */
.navbar-logo {
    height: 60px;
    width: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #1a202c;
    padding: 30px 0;
    margin-top: auto;
    color: #ffffff;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo {
    height: 50px;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer p {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: normal;
    padding: 0;
    margin-left: 20px;
    height: 100%;
}

.dropdown .dropbtn:hover {
    opacity: 0.8;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    margin-top: 15px;
    /* Offset to clear the current navbar padding */
}

/* Invisible bridge to prevent mouse leave on gap */
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

/* The arrow trick matches the user request styling roughly */
.dropdown-content a {
    color: var(--dark-bg);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    border-bottom: 1px solid var(--border-gray);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.dropdown:hover .dropdown-content {
    display: block;
}