/* Global Styles - Antigravit Design System */
:root {
    /* Color Palette */
    --color-primary-dark: #1B332F;
    --color-primary-light: #D4E9E6;
    --color-accent: #19E21A;
    --color-accent-hover: #15B817;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    /* Typography */
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
a,
button,
input,
textarea,
select {
    font-family: var(--font-family);
}

body {
    background-color: var(--color-primary-light);
}

/* Utility Classes */
.bg-primary-dark {
    background-color: var(--color-primary-dark) !important;
}

.bg-primary-light {
    background-color: var(--color-primary-light) !important;
}

.bg-accent {
    background-color: var(--color-accent) !important;
}

.text-primary-dark {
    color: var(--color-primary-dark) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.border-accent {
    border-color: var(--color-accent) !important;
}

.border-primary-dark {
    border-color: var(--color-primary-dark) !important;
}

.hover\:bg-accent-hover:hover {
    background-color: var(--color-accent-hover) !important;
}

.hover\:text-accent:hover {
    color: var(--color-accent) !important;
}

/* Modern Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(27, 51, 47, 0.08);
    border: 1px solid rgba(27, 51, 47, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(27, 51, 47, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #2a4a44 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-accent {
    background: rgba(25, 226, 26, 0.1);
    color: #15B817;
    border: 1px solid rgba(25, 226, 26, 0.2);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(25, 226, 26, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(25, 226, 26, 0.4);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: #2a4a44;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: white;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
    border: 2px solid rgba(27, 51, 47, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(25, 226, 26, 0.1);
}

/* Navigation */
nav a {
    position: relative;
    transition: all 0.2s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: var(--color-primary-dark);
    color: white;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    background: white;
    border-bottom: 1px solid rgba(27, 51, 47, 0.1);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(212, 233, 230, 0.3);
}

tbody td {
    padding: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a4a44;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.sidebar {
    width: 260px;
    background-color: var(--color-primary-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    text-decoration: none;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--color-accent);
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
}

.submenu-title {
    padding: 24px 24px 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 800;
}

.header-top {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

/* =====================
   Notification Button
   ===================== */
.notifications-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.notification-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

.notification-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(25, 226, 26, 0.3);
}

.notification-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    width: 340px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(27, 51, 47, 0.1);
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}

/* Mobile */
@media (max-width: 480px) {
    .notifications-button {
        top: 12px;
        right: 12px;
    }
    .notification-dropdown {
        width: calc(100vw - 24px);
        right: 0;
    }
}