:root {
    --primary: #4f46e5; /* Indigo */
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --sidebar: #111827;
}

body {
    background-color: #f5f6f8;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    margin: 0;
    overflow-x: hidden;
}

/* Layout Wrappers */
.main-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #2b2d42;
    color: #a3a6b4;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar .sidebar-brand {
    height: 70px;
    background-color: #232436;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}

.sidebar .menu-label {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c7293;
}

.sidebar .nav-item {
    margin: 0.2rem 1rem;
    list-style: none;
}

.sidebar .nav-link {
    color: #a3a6b4;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-weight: 500;
    text-decoration: none;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.sidebar .nav-link.active {
    border-left: 3px solid #6366f1;
    background-color: rgba(99, 102, 241, 0.1);
}

/* Content Area */
.content-wrapper {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.3s;
}

body.guest-user .content-wrapper {
    margin-left: 0 !important;
}

/* Top Header */
.top-header {
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    z-index: 999;
}

.top-header .search-bar {
    background: #f1f3f5;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.top-header .search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 0.9rem;
}

.top-header-tools {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-content {
    padding: 2rem;
    flex: 1;
}

/* Premium Card (Matching EtkinlikYonetimi UI image) */
.premium-card, .glass-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 1.5rem;
    border: 1px solid #ebedf2;
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    color: white;
}

/* Tables matching the style */
table.table thead th {
    background-color: #2b2d42 !important;
    color: #ffffff !important;
    font-weight: 500;
    padding: 1rem;
    border: none;
}

table.table tbody tr:hover {
    background-color: #f4f6fb;
}

/* Extra small text */
.extra-small {
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        left: -260px;
    }
    .content-wrapper {
        margin-left: 0;
    }
    .sidebar.show {
        left: 0;
    }
}
