/* User Authentication & Dashboard Styles - Site Theme Compatible */

/* Container Styles */
.auth-container {
    background: var(--light-gray);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.profile-container,
.dashboard-container,
.settings-container {
    background: var(--bg-color);
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* User breadcrumb and page header styles removed - now using standard breadcrumb-nav and page-header */

/* User Main Content */
.user-main-content {
    padding: 2rem 0;
}

.user-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.user-content-section {
    min-width: 0;
    padding: 0;
}

/* Card Styles */
.auth-card,
.profile-card,
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.profile-card {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Header Styles */
.auth-header,
.profile-header,
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e74c3c 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.auth-header h2,
.profile-header h2,
.dashboard-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-header p,
.profile-header p,
.dashboard-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.dashboard-subtitle {
    font-size: 1rem;
}

/* Body Styles */
.auth-body,
.profile-body {
    padding: 2rem;
}

/* Form Styles */
.form-floating {
    margin-bottom: 1.25rem;
}

.form-floating .form-control {
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.875rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    background: var(--card-bg);
}

.form-floating label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Button Styles */
.btn-auth,
.btn-profile {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 0.875rem;
    font-weight: 600;
    width: 100%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-auth:hover,
.btn-profile:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
    transform: none;
    box-shadow: none;
}

/* Divider Styles */
.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: var(--border-color);
}

.auth-divider span {
    background: var(--card-bg);
    padding: 0 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Link Styles */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #c82333;
    text-decoration: underline;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me .form-check-input {
    margin-right: 0.5rem;
    border-radius: 0;
    border-color: var(--border-color);
}

.remember-me .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert {
    border-radius: 0;
    border: 1px solid;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* User Avatar */
.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
}

/* User Info */
.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.user-email {
    font-size: 1rem;
    opacity: 0.9;
}

/* Stats Cards */
.stats-card,
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-card:hover,
.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-icon.bg-primary {
    background: var(--primary-color);
}

.stat-icon.bg-success {
    background: #28a745;
}

.stat-icon.bg-info {
    background: #17a2b8;
}

.stat-icon.bg-warning {
    background: #ffc107;
    color: #212529;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-action-btn i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Dark Mode Compatibility */
body.dark-mode .auth-container,
body.dark-mode .profile-container,
body.dark-mode .dashboard-container {
    background: #1a1a1a;
}

body.dark-mode .auth-card,
body.dark-mode .profile-card,
body.dark-mode .dashboard-card,
body.dark-mode .stats-card,
body.dark-mode .quick-action-btn {
    background: var(--card-bg);
    border-color: #404040;
}

body.dark-mode .auth-divider span {
    background: var(--card-bg);
}

body.dark-mode .alert-danger {
    background: #2d1b1b;
    border-color: #5a2a2a;
    color: #ff6b6b;
}

body.dark-mode .alert-success {
    background: #1b2d1b;
    border-color: #2a5a2a;
    color: #51cf66;
}

body.dark-mode .stats-card:hover,
body.dark-mode .stat-card:hover,
body.dark-mode .quick-action-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.dark-mode .stats-card,
body.dark-mode .stat-card {
    background: var(--card-bg);
    border-color: #404040;
    color: #ffffff;
}

body.dark-mode .stat-number {
    color: #ffffff;
}

body.dark-mode .stat-label {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    /* User page header styles removed - now using standard page-header */
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0;
    }
    
    .auth-card,
    .profile-card {
        margin: 0 1rem;
    }
    
    .auth-header,
    .profile-header {
        padding: 1.5rem;
    }
    
    .auth-body,
    .profile-body {
        padding: 1.5rem;
    }
    
    .auth-header h2,
    .profile-header h2 {
        font-size: 1.5rem;
    }
    
    /* User breadcrumb and page header responsive styles removed - now using standard components */
    
    .dashboard-title {
        font-size: 1.75rem;
    }
    
    .user-name {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .quick-action-btn {
        padding: 1rem;
    }
    
    .quick-action-btn i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-action-btn span {
        font-size: 0.85rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
}