/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e2a3c 0%, #2c3e50 100%);
    color: #fff;
    transition: all 0.3s ease;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
    position: relative;
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ecf0f1;
}

/* Close button for sidebar */
.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    display: none;
}

.sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
    color: #3498db;
}

/* Sidebar menu links */
.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ecf0f1;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 1.05rem;
    font-weight: 500;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #3498db;
    transform: translateX(4px);
    color: #3498db;
    text-decoration: none;
}

.sidebar-menu a.active {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border-left: 4px solid #3498db;
    font-weight: 600;
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: all 0.3s ease;
}

/* Top navbar */
.navbar {
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.welcome-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Hamburger menu animation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    height: 44px;
    width: 44px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.navbar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.navbar-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 24px;
    background: #2c3e50;
    border-radius: 3px;
    opacity: 1;
    left: 10px;
    transform: rotate(0deg);
    transition: all 0.3s ease-in-out;
}

.navbar-toggle span:nth-child(1) {
    top: 12px;
}

.navbar-toggle span:nth-child(2) {
    top: 20px;
}

.navbar-toggle span:nth-child(3) {
    top: 28px;
}

.navbar-toggle.active span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggle.active span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

.mobile-logo {
    display: none;
    font-weight: 600;
    font-size: 1.3rem;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

/* Content area */
.content {
    padding: 20px;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-title {
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #2980b9 0%, #1f6391 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Home page */
.home-container {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 2rem;
}

.home-links {
    margin-top: 30px;
}

.home-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.home-links a:hover {
    background: linear-gradient(90deg, #2980b9 0%, #1f6391 100%);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Profile page */
.profile-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.profile-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-info {
    margin-bottom: 10px;
}

.profile-info strong {
    display: inline-block;
    width: 150px;
    color: #2c3e50;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .sidebar {
        width: 0;
        overflow: hidden;
        position: fixed;
        z-index: 1000;
        left: -260px;
        transition: all 0.3s ease;
    }
    
    .sidebar.active {
        width: 260px;
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-close {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .welcome-text {
        font-size: 1rem;
    }
}