:root {
    /* Corporate Blue Theme - Light Mode */
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --sidebar-bg: #212529;
    --sidebar-text: #ffffff;
    --nav-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Corporate Blue Theme - Dark Mode */
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --sidebar-bg: #000000;
    --nav-bg: #1e1e1e;
    --border-color: #333333;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    transition: var(--transition);
}

/* Sidebar Styling */
.app-sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
}

.app-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.2rem;
    margin: 0.2rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.app-sidebar .nav-link:hover, 
.app-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff !important;
}

.app-sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 12px;
}

/* Main Content Wrapper */
.app-container {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Top Navbar */
.top-navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1040;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Page Content */
.page-content {
    padding: 2rem;
    flex-grow: 1;
}

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 4px 6px;
    border-radius: 50%;
    background: #ff4757;
    color: white;
    font-size: 0.65rem;
    line-height: 1;
}

/* Responsive */
/* Custom Modal Size (20% Larger than modal-lg) */
.modal-xl-custom {
    max-width: 90%;
}

@media (min-width: 1200px) {
    .modal-xl-custom {
        max-width: 1140px; /* Standard modal-xl is 1140px, but since modal-lg is 800px, 20% larger is ~960px. Let's make it 90% or 1140px for better fit. */
    }
}

/* Horizontal Gallery Carousel */
.horizontal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-gallery::-webkit-scrollbar {
    height: 6px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-card {
    min-width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fullscreen Viewer */
.media-viewer-container {
    max-width: 80vw;
    margin: auto;
}

.media-viewer-content {
    background: transparent;
    border: none;
}

.media-viewer-img {
    max-height: 80vh;
    border-radius: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: var(--shadow);
    }

    .app-container {
        margin-left: 0;
    }

    .page-content {
        padding: 1rem;
    }
}

