/* Main styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
}

ul {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

li {
    margin-bottom: 15px;
}

a {
    display: block;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
}

a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

/* PDF list specific styles */
.pdf-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdf-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.pdf-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Header and navigation */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.logo a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
    display: block;
}

.logo a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Avatar and dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.dropdown-content {
    position: absolute;
    right: 0;
    background: rgba(255,255,255,0.95);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    backdrop-filter: blur(10px);
}

.dropdown-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.dropdown-content li a:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: none;
    box-shadow: none;
}

.dropdown-content li:last-child a {
    border-radius: 0 0 10px 10px;
}

.dropdown-content i {
    margin-right: 10px;
    width: 16px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
}

/* Auth forms */
.container {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.container p {
    text-align: center;
    margin-top: 25px;
    color: #6c757d;
}

.container p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: inline;
    transition: color 0.3s ease;
}

.container p a:hover {
    color: #764ba2;
    transform: none;
    box-shadow: none;
}

.error {
    color: #e74c3c;
    background: linear-gradient(135deg, #ffeaea, #ffd6d6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #e74c3c;
    font-weight: 500;
}

.success {
    color: #27ae60;
    background: linear-gradient(135deg, #eafaf1, #d5f4e6);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .pdf-list {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-content {
        right: -20px;
        min-width: 180px;
    }
}