/* ============================================
   USER MANAGEMENT PAGES STYLES
   Inherits base styles from main.css
   ============================================ */

/* User Pages - Subtle gradient background */
body {
    background: linear-gradient(135deg, #e6f7f4 0%, #ffffff 50%, #f0faf8 100%);
    min-height: 100vh;
}

/* Main content wrapper */
.user-pages-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
}

/* Page Headers */
.page_header {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 1200px;
}

/* ============================================
   FORM PAGES (Login, Register, etc.)
   ============================================ */

.user_form_container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.user_form_card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.user_form_card form {
    margin-bottom: 1.5rem;
}

.user_form_card .form-check {
    margin-bottom: 1.5rem;
}

.user_form_card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

.user_form_card .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Form inputs */
.user_form_card input:focus,
.user_form_card select:focus,
.user_form_card textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1) !important;
}

/* Form links */
.form-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Buttons in forms */
.user_form_card .btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin: 0.5rem 0;
}

.user_form_card .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    color: white;
    text-decoration: none;
}

.user_form_card .btn:active {
    transform: translateY(0);
}

/* Messages/Alerts */
.user_form_card .alert,
.terms-container .alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fee;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

/* Password Visibility Toggle */
.password-field-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    user-select: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: var(--primary-color);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.dashboard-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dashboard-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(26, 188, 156, 0.15);
    transform: translateY(-3px);
}

.dashboard-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.dashboard-section .btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.dashboard-section .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    color: white;
    text-decoration: none;
}

.dashboard-section .btn:active {
    transform: translateY(0);
}

.dashboard-section .btn:last-child {
    margin-bottom: 0;
}

/* ============================================
   TERMS & PRIVACY POLICY
   ============================================ */

.terms-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto 3rem;
    padding: 3rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.terms-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.terms-container h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.terms-container p {
    text-align: left !important;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.terms-container a {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-container a:hover {
    color: var(--primary-dark);
}

.terms-container .form-check {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-container .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
    cursor: pointer;
}

.terms-container .form-check-label {
    margin-left: 0.75rem;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 500;
}

.terms-container .button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.terms-container .btn {
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.terms-container .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    color: white;
    text-decoration: none;
}

.terms-container .btn:active {
    transform: translateY(0);
}

.terms-container .btn-secondary {
    background: #6c757d;
}

.terms-container .btn-secondary:hover {
    background: #5a6268;
}

.terms-actions {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .page_header {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .user_form_card {
        padding: 2rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .dashboard-sections {
        padding: 0 1rem;
    }

    .dashboard-section {
        padding: 2rem;
    }

    .terms-container {
        width: 95%;
        padding: 2rem;
    }

    .terms-container h2 {
        font-size: 2rem;
    }

    .terms-container h3 {
        font-size: 1.5rem;
    }

    .terms-container .button-group {
        flex-direction: column;
    }

    .terms-container .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page_header {
        font-size: 1.75rem;
    }

    .user_form_card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .dashboard-section h3 {
        font-size: 1.5rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
    }

    .user-pages-content {
        background: white;
    }

    .user_form_card,
    .dashboard-section,
    .terms-container {
        box-shadow: none;
    }

    .btn,
    .password-toggle-btn {
        display: none;
    }
}