/* Authentication Styles */

/* Auth Message */
.auth-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 5px;
    z-index: 1001;
    font-weight: bold;
    text-align: center;
    min-width: 300px;
}

.auth-message.success {
    background: #27ae60;
    color: white;
}

.auth-message.error {
    background: #e74c3c;
    color: white;
}

/* Login Button in Navigation */
.login-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.login-button:hover {
    background: #2980b9;
}

/* User Info Display */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #2c3e50;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    color: white;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: white;
}

/* Auth Form Styles */
.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #3498db;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #34495e;
    border-radius: 5px;
    background: #34495e;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    background: #2c3e50;
}

.auth-button {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-button:hover {
    background: #2980b9;
}

/* Auth Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #34495e;
}

.auth-divider span {
    background: #2c3e50;
    padding: 0 1rem;
    color: #7f8c8d;
}

/* Google Button */
.google-btn {
    width: 100%;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.google-btn:hover {
    background: #f5f5f5;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #7f8c8d;
}

.auth-switch a {
    color: #3498db;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-info span {
        font-size: 0.9rem;
    }
}
/* Existing styles remain the same, add these new ones */

/* Dashboard Styles */
.dashboard-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.dashboard-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #34495e;
    border-radius: 8px;
    border: 1px solid #24486c;
}

.dashboard-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.profile-info {
    background: #2c3e50;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.profile-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.profile-info strong {
    color: #3498db;
    display: inline-block;
    width: 130px;
}

.logout-btn-dashboard {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.logout-btn-dashboard:hover {
    background: #c0392b;
}

/* Password Reset Form Styling */
#reset-form p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
    font-size: 0.95rem;
}

/* Enhanced Modal for Dashboard */
.modal-content.dashboard-content {
    width: 95%;
    max-width: 700px;
    margin: 2% auto;
}

/* Form enhancements */
.form-group input[placeholder] {
    font-style: italic;
}

.form-group input:focus[placeholder] {
    font-style: normal;
}

/* Auth switch enhancements */
.auth-switch {
    line-height: 1.6;
}

.auth-switch a {
    display: inline-block;
    margin: 0.2rem 0;
}

/* Responsive updates */
@media (max-width: 768px) {
    .dashboard-content {
        width: 98%;
        margin: 5% auto;
        padding: 1rem;
    }
    
    .dashboard-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .profile-info strong {
        width: 100px;
        font-size: 0.9rem;
    }
}

/* Success/Error message enhancements */
.auth-message {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Loading states */
.loading {
    color: #7f8c8d;
    font-style: italic;
}

.dashboard-section input {
    
    
    border: 1px solid #34495e;
    border-radius: 5px;
    background: #293a4c;
}
  