/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Toggle Button */
.toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.2rem;
    outline: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.toggle-btn:active {
    transform: scale(0.95);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo i {
    font-size: 1.5rem;
    color: #667eea;
}

.logo-text {
    transition: opacity 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    margin: 0.5rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: white;
    transform: translateX(5px);
}

.nav-link i {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.nav-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content li {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: white;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: white;
}

.feature-card p {
    opacity: 0.9;
    font-size: 0.9rem;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        left: -100vw;
        width: 100vw;
        max-width: 300px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    /* Mobile overlay */
    .sidebar::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: -1;
        pointer-events: none;
    }
    
    .sidebar.open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .toggle-btn {
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
}

/* Desktop expanded sidebar */
@media (min-width: 769px) {
    .sidebar.open + .main-content {
        margin-left: 300px;
    }
    
    .toggle-btn {
        left: 300px;
        transition: left 0.3s ease;
    }
    
    .sidebar.open ~ .toggle-btn {
        left: 320px;
    }
}
