:root {
    /* Color Palette - Deep EVE Theme */
    --bg-dark: #0f111a;
    --bg-card: #1a1d2b;
    --bg-header: #141724;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;

    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-on-accent: #ffffff;

    --border-color: #2d3748;
    --shadow-main: 0 4px 20px rgba(0, 0, 0, 0.4);

    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.5;
}

/* Layout Containers */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.content-area {
    padding: 30px;
}

/* Page Elements */
.page-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-main);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    padding: 30px;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.page-content {
    padding: 30px;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    font-size: 0.95rem;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--text-main);
    background-color: rgba(102, 126, 234, 0.1);
}

.nav-item.active a {
    border-left: 4px solid var(--accent-primary);
    padding-left: 21px;
    /* Adjust for border */
}

/* Forms & Inputs */
.form-section {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

input[type="text"],
input[type="number"],
select,
textarea {
    background-color: #0f111a;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-info);
}

/* Alerts & Info Boxes */
.alert,
.info-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-success,
.info-box-success {
    background-color: rgba(16, 185, 129, 0.05);
    border-left: 4px solid var(--accent-success);
}

.alert-danger,
.info-box-danger {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid var(--accent-danger);
}

.alert-warning,
.info-box-warning {
    background-color: rgba(245, 158, 11, 0.05);
    border-left: 4px solid var(--accent-warning);
}

.alert-info,
.info-box-info {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--accent-info);
}

/* Tabs System */
.tab-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.flex-gap-10 {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}