:root {
    --sidebar-width: 250px;
    --primary-color: #800020;
    /* Wine red */
}

/* Body layout */
body {
    margin: 0;
    display: flex;
    font-family: Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* Sidebar navigation */
.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    padding: 10px 20px;
}

.sidebar nav ul li .dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.sidebar nav ul li .dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 15px;
}

.sidebar nav ul li .dropdown-content a {
    color: white;
    text-decoration: none;
    padding: 5px 0;
    font-size: 14px;
}

.sidebar nav ul li.active .dropdown-content {
    display: flex;
}

/* Logo section */
.logo-full img {
    width: 80%;
    margin: 20px auto;
    display: block;
}

/* Main content */
#main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

/* Toggle button for mobile */
#toggleSidebar {
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

/* Overlay for mobile sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1020;
}

.overlay.show {
    display: block;
}

/* Generic toggle button style */
.toggle-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    #main-content {
        margin-left: 0;
    }

    #toggleSidebar {
        display: inline-block;
    }

    .overlay.show {
        display: block;
    }
}

.card-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.card img {
    max-height: 160px;
    object-fit: cover;
}