/* 
    Side Navigation Styles
    Inspired by Sepitasks design
*/

/* Main Layout with Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Side Navigation */
.side-nav {
    width: 280px;
    background: var(--dark);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal);
}

.side-nav-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.side-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-nav-logo img {
    height: 20px;
    width: auto;
}

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

.nav-section {
    margin-bottom: var(--spacing-lg);
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 15px;
    padding: 0 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 5px;
}

.nav-item:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary-color);
    color: var(--text-primary);
}

.nav-item i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    opacity: 0.9;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

.side-nav-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* Logout Button Styles */
.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logout-btn:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.logout-btn i {
    width: 24px;
    text-align: center;
    font-size: 18px;
    opacity: 0.9;
}

.logout-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

.logout-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-text {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
}

.version-info {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.5;
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

/* Page Container */
.page-container {
    padding: var(--spacing-2xl);
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: 36px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.page-description {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Page Content Sections */
.content-section {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-content {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Changelog Styles */
.changelog-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid var(--primary-color);
}

.changelog-version {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.changelog-date {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 12px;
}

.changelog-changes {
    list-style: none;
    padding: 0;
}

.changelog-changes li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

.changelog-changes li:before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.changelog-changes li.added:before {
    content: '+';
    color: var(--success);
}

.changelog-changes li.fixed:before {
    content: '✓';
    color: var(--info);
}

.changelog-changes li.improved:before {
    content: '↑';
    color: var(--warning);
}

/* Settings Styles */
.settings-group {
    margin-bottom: var(--spacing-2xl);
}

.settings-group-title {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.setting-item {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background var(--transition-fast);
}

.setting-item:hover {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.setting-info h4 {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.setting-info p {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.toggle-switch.active {
    background: var(--primary-color);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

/* Responsive */
@media (max-width: 992px) {
    .side-nav {
        transform: translateX(-100%);
    }

    .side-nav.active {
        transform: translateX(0);
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .page-container {
        padding: var(--spacing-lg);
    }

    .page-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: var(--spacing-md);
    }

    .page-title {
        font-size: 24px;
    }
}