/* Design System Variables */
:root {
    --primary: #4B6BFB;
    --primary-dark: #3451d1;
    --secondary: #1a1f2e;
    --text-light: #ffffff;
    --text-dark: #1a1f2e;
    --bg-dark: #0d1117;
    --bg-card: #1a1f2e;
    --bg-card-grey: #dddddd;
    --success-color: #22d4a5;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Common Components */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 107, 251, 0.3);
}

/* Card Styles */
.card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(75, 107, 251, 0.2);
}

label {
    display: block;
    /* margin-bottom: 8px; */
    color: var(--text-light);
    font-weight: 500;
}

/* Loading Component */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Alert Modal */
.alert-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background-color: var(--bg-card);
    color: var(--text-light);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.alert-modal.show {
    transform: translateX(0);
}

.alert-modal.success {
    border-left: 4px solid var(--success-color);
}

.alert-modal.error {
    border-left: 4px solid var(--danger-color);
}

.alert-modal.warning {
    border-left: 4px solid var(--warning-color);
}

.alert-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    opacity: 0.7;
}

.alert-modal-close:hover {
    opacity: 1;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--secondary);
}

.table th {
    background-color: var(--bg-card);
    font-weight: 600;
}

.table tr:hover {
    background-color: var(--secondary);
}

/* Header/Navigation */
.header {
    background-color: var(--bg-card);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    color: var(--text-light);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    /* padding: 20px; */
    margin-top: 80px; /* Account for fixed header */
} 
.main {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}
