/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Hide checkboxes used for menu toggles */
.menu-checkbox {
    display: none;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: #bdc3c7;
    font-weight: 300;
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.nav-item:hover {
    background-color: #34495e;
}

.nav-item i:first-child {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-item span {
    flex: 1;
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Parent items */
.nav-item.parent {
    font-weight: 600;
}

.nav-item-header {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Submenu styles - initially hidden */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #253341;
}

/* Show submenu when checkbox is checked */
#members-menu:checked ~ .submenu{
    max-height: 500px;
}

#finance-menu:checked ~ .submenu {
    max-height: 500px;
}

/* Rotate toggle icon when menu is open */
#members-menu:checked + label .toggle-icon {
    transform: rotate(90deg);
}
#finance-menu:checked + label .toggle-icon {
    transform: rotate(90deg);
}

.nav-item.child {
    padding-left: 48px;
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-item.child:hover {
    background-color: #2c3e50;
}

/* Sub-submenu styles */
.sub-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #1a252f;
}

/* Show sub-submenu when checkbox is checked */
/* #children-menu:checked ~ .sub-submenu {
    max-height: 200px;
}

/* Rotate toggle icon for child menu */
/* #children-menu:checked + label .toggle-icon {
    transform: rotate(90deg);
} */ */

.nav-item.department {
    padding-left: 76px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Active state for clicked menu items */
.nav-item:active,
.nav-item:focus {
    background-color: #3498db;
    color: white;
}

/* Style for active page */
.content-target {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
    animation: fadeIn 0.5s ease;
}

/* Show content when target is clicked */
.content-target:target {
    display: block;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sidebar footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    font-size: 2.5rem;
    color: #7f8c8d;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
}

.user-role {
    font-size: 0.85rem;
    color: #bdc3c7;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.content-header {
    padding: 20px 30px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #d5dbdb;
}

/* Content Body */
.content-body {
    padding: 30px;
    flex: 1;
}

.welcome-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.welcome-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.welcome-card p {
    color: #555;
    margin-bottom: 20px;
    max-width: 800px;
}

.structure-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.structure-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.structure-info ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.structure-info li {
    margin-bottom: 8px;
    color: #444;
}

/* Instructions section */
.instructions {
    margin: 30px 0;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.instruction-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.instruction-icon {
    width: 50px;
    height: 50px;
    background-color: #e3f2fd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.instruction-icon i {
    font-size: 1.5rem;
    color: #1976d2;
}

.instruction-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.instruction-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Content section */
.content-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.content-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

#content-display {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.content-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-item h5 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.content-item p {
    color: #666;
    font-size: 0.9rem;
}

.content-footer {
    padding: 20px 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .nav-menu {
        max-height: 300px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }
}

