﻿﻿ /* This manages all authenticated related pages styling */
/* MyProfile, Login, Signup */
:root {
    --primary: #1b2438;
    --secondary: #3498db;
    --accent: #1abc9c;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border: #e9ecef;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
    font-size: 16px; /* Better base for mobile */
}

/* Profile Container */
.profile-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .profile-header h1 {
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 0.5rem;
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .profile-header p {
        color: var(--gray);
        font-size: 1rem;
    }

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

    .profile-card:hover {
        transform: translateY(-3px);
    }

.profile-header-section {
    background: linear-gradient(135deg, var(--primary), #2c3e50);
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.profile-role {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.profile-body {
    padding: 1.5rem 1rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

    .info-section h3 {
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--border);
        font-size: 1.1rem;
    }

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    width: 100%;
}

.info-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    gap: 0.75rem;
}

/*.btn {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

    .btn-danger:hover {
        background: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    }

.btn-icon {
    margin-right: 0.5rem;
}*/

/* ===== LOGIN/SIGNUP MODAL STYLES ===== */
/*.modal-body {
    padding: 1.5rem;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}*/

.btn-google {
    background-color: #fff;
    color: #757575;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    border-radius: 10px;
    min-height: 52px;
    font-size: 1rem;
}

    .btn-google:hover {
        background-color: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

.google-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6c757d;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #dee2e6;
    }

    .divider span {
        padding: 0 1rem;
    }

.remember-forgot {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
}

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

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-submit {
    background: #ff5d00;
    border: none;
    color: white;
    padding: 14px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
    min-height: 52px;
    font-size: 1rem;
}

    .btn-submit:hover {
        background: #e65100;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 93, 0, 0.3);
    }

.signup-link,
.login-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
}

    .signup-link a,
    .login-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .signup-link a:hover,
        .login-link a:hover {
            text-decoration: underline;
        }

/* Form Input Improvements */
/*.input-group {
    margin-bottom: 1rem;
}

.input-group-text {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 0.875rem 0.75rem;
    min-height: 52px;
}

.form-control {
    height: auto;
    padding: 0.875rem 0.75rem;
    border: 1px solid #ced4da;
    border-left: none;
    font-size: 16px;*/ /* Prevent zoom on iOS */
    /*min-height: 52px;
}

    .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(27, 36, 56, 0.15);
        border-color: var(--primary);
    }

.input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(27, 36, 56, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}*/

.password-toggle {
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    min-height: 52px;
    border-radius: 0 8px 8px 0;
}

.svg-icon {
    width: 20px;
    height: 20px;
    fill: #6c757d;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Profile-specific styles to add to your auth.css */

.profile-role {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.consultant-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .consultant-link:hover {
        text-decoration: underline;
        color: #2980b9;
    }

.user-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.edit-profile-btn {
    background: var(--primary) !important;
    color: white !important;
    flex: 1;
}

    .edit-profile-btn:hover {
        background: #2c3e50 !important;
        box-shadow: 0 4px 12px rgba(27, 36, 56, 0.3);
    }

.profile-edit-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-edit-header {
    text-align: center;
    margin-bottom: 30px;
}

    .profile-edit-header h1 {
        color: #333;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .profile-edit-header p {
        color: #666;
    }

.profile-edit-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(27, 36, 56, 0.1);
    }

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    background: #2c3e50;
}

.btn-secondary:hover {
    background: #5a6268;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Modal styles */
/*.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1) brightness(2);
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #2c3e50;
}*/

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        width: auto;
        min-width: 140px;
    }
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .action-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        width: auto;
        min-width: 140px;
    }
}
/* Tablet Styles */
@media (min-width: 768px) {
    .profile-container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    .profile-header h1 {
        font-size: 2rem;
    }

    .profile-header-section {
        padding: 2rem;
    }

    .profile-body {
        padding: 2rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .info-item {
        flex-direction: row;
        align-items: center;
    }

    .info-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .action-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .btn {
        width: auto;
        min-width: 140px;
    }

    .remember-forgot {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .modal-body {
        padding: 2rem;
    }

    .btn-google {
        max-width: 280px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .profile-container {
        margin: 3rem auto;
    }

    .profile-header h1 {
        font-size: 2.2rem;
    }

    .modal-body {
        padding: 2.5rem;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 360px) {
    .profile-container {
        padding: 0 0.75rem;
    }

    .profile-header-section {
        padding: 1.25rem 0.75rem;
    }

    .profile-body {
        padding: 1.25rem 0.75rem;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .btn-google,
    .btn-submit {
        min-height: 48px;
        padding: 12px;
    }
}

/* Modal Mobile Fullscreen */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* Make modals more mobile-friendly */
    .modal-header .btn-close {
        margin: 0;
        padding: 0.5rem;
    }
}

/* Safe Area Support for Notched Devices */
@supports(padding: max(0px)) {
    .profile-container,
    .modal-body {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Animation for form elements */
.form-control,
.btn {
    transition: all 0.2s ease-in-out;
}

/* === PROFILE PAGE FORCE STYLES === */
/* These will override anything else */

html body .profile-container .profile-card,
body .profile-container .profile-card {
    all: unset; /* Reset any inherited styles */
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

    html body .profile-container .profile-card .profile-header-section,
    body .profile-container .profile-card .profile-header-section {
        all: unset;
        display: block;
        background: linear-gradient(135deg, #1b2438, #2c3e50);
        background-image: linear-gradient(135deg, #1b2438, #2c3e50) !important;
        color: white;
        padding: 1.5rem 1rem;
        text-align: center;
    }

/* Use !important to force the gradient */
.profile-header-section {
    background: linear-gradient(135deg, var(--primary), #2c3e50) !important;
    background-image: linear-gradient(135deg, var(--primary), #2c3e50) !important;
}