/* Base sidebar styles */
.sidebar-wrapper {
    transition: all 0.3s ease;
    width: 250px;
    min-width: 250px;
    background-color: white;
    padding: 20px 0;
    border-right: 1px solid #e9ecef;
}

.sidebar-wrapper.collapsed {
    width: 60px;
    min-width: 60px;
}

/* Navigation styles */
.sidebar-nav {
    padding: 0;
}

.nav-link {
    color: #2B3847;
    padding: 12px 20px;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

.nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 15px;
    color: #198754;
}

/* Hide text when collapsed */
.collapsed .nav-text {
    display: none;
}

/* Toggle button styles */
#sidebar-toggle {
    color: #198754;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    margin-bottom: 20px;
}

#sidebar-toggle:hover {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Active state for current page */
.nav-link.active {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    font-weight: 500;
}

/* Content adjustment */
.col-md-9 {
    transition: margin-left 0.3s ease;
    padding-left: 30px;
}

.col-md-9.expanded {
    margin-left: 60px;
}

/* Logo styles */
.sidebar-logo {
    padding: 0 20px 20px;
    color: white;
    font-size: 1.2em;
}

.collapsed .sidebar-logo {
    display: none;
}

/* Container layout */
.main-container {
    display: flex;
    min-height: 100vh;
    background-color: white;
}

/* Content area styles */
.content-wrapper {
    flex: 1;
    transition: margin-left 0.3s ease;
    padding: 20px;
    width: calc(100% - 250px);
    background-color: white;
}

.content-wrapper.expanded {
    width: calc(100% - 60px);
}

/* Primary buttons and links */
.btn-primary {
    background-color: #198754;
    border-color: #198754;
}

.btn-primary:hover {
    background-color: #157347;
    border-color: #157347;
}

/* Secondary buttons */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #5c636a;
}
