/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.mobile-nav {
    display: none;
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
    background: #2c3e50;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.desktop-nav a, .dropdown button {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-login {
    margin-left: auto;
    background: #27ae60 !important;
}

.user-login:hover {
    background: #219653 !important;
}

.admin-login {
    background: #e74c3c !important;
}

.admin-login:hover {
    background: #c0392b !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 5px;
    z-index: 100;
    padding: 10px 0;
    top: 100%;
}

.submenu {
    position: relative;
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    width: 280px;
    border-radius: 0 5px 5px 5px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    border-left: 2px solid #e74c3c;
}

.submenu .submenu-content .submenu-content {
    left: 100%;
    top: 0;
    margin-left: 0;
}

.submenu button {
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    color: #2c3e50;
    font-weight: 500;
    justify-content: space-between;
    background: none !important;
}

.submenu-content a {
    padding: 10px 20px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-decoration: none;
}

/* Hover Effects */
.desktop-nav a:hover, .dropdown:hover button {
    background: rgba(255,255,255,0.25);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.submenu:hover .submenu-content {
    display: block;
}

.submenu button:hover {
    background: #f0f0f0 !important;
}

.submenu-content a:hover {
    background: #e74c3c;
    color: white;
}

/* Button Specific Styles */
.desktop-nav a[href="notes.php"], 
.dropdown button[aria-label="Notes"] {
    background: rgba(155, 89, 182, 0.15) !important;
}

.desktop-nav a[href="papers.php"], 
.dropdown button[aria-label="Papers"] {
    background: rgba(52, 152, 219, 0.15) !important;
}

.desktop-nav a[href="mock-tests.php"] {
    background: rgba(231, 76, 60, 0.15) !important;
}

.desktop-nav a[href="about.php"] {
    background: rgba(241, 196, 15, 0.15) !important;
}

.desktop-nav a[href="notes.php"]:hover, 
.dropdown button[aria-label="Notes"]:hover {
    background: rgba(155, 89, 182, 0.25) !important;
}

.desktop-nav a[href="papers.php"]:hover, 
.dropdown button[aria-label="Papers"]:hover {
    background: rgba(52, 152, 219, 0.25) !important;
}

.desktop-nav a[href="mock-tests.php"]:hover {
    background: rgba(231, 76, 60, 0.25) !important;
}

.desktop-nav a[href="about.php"]:hover {
    background: rgba(241, 196, 15, 0.25) !important;
}

/* ===== USER DROPDOWN STYLES ===== */
.user-section {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(46, 204, 113, 0.15) !important;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.user-btn:hover {
    background: rgba(46, 204, 113, 0.25) !important;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 100;
    padding: 5px 0;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown-content a:hover {
    background: #f5f5f5;
    color: #2c3e50;
}

.user-dropdown-content a i {
    width: 18px;
    text-align: center;
}

/* ===== HOMEPAGE HERO ===== */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== WEBSITE FEATURES ===== */
.website-features {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.website-features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 10px 0;
    color: #2c3e50;
}

.feature-card p {
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}