@charset "UTF-8";

/* =====================================================================
   PROFILE EDIT MODAL  ·  Glassmorphism / dark theme
   - Brand blue unified onto --primary-color (was a separate #007bff).
   - Repeated translucent whites pulled into --glass-* tokens (common.css).
   ===================================================================== */

.profile-edit-modal {
    padding: 40px;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    color: #fff;
}

#profileEditModal .modal-title {
    font-weight: 600;
    font-size: 32px;
    display: flex;
    color: #fff;
    align-items: center;
    margin-bottom: 20px;
}

.profile-edit-modal .form-group {
    width: 100%;
    margin-bottom: 20px;
}

.profile-edit-modal .form-group label {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
}

.profile-edit-modal input[type="text"],
.profile-edit-modal input[type="password"],
.profile-edit-modal input[type="email"],
.profile-edit-modal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--glass-fill);
    color: #fff !important;
    outline: none;
    font-weight: 300;
    box-sizing: border-box;
    transition: border-color 0.3s, background 0.3s;
}

.profile-edit-modal input::placeholder,
.profile-edit-modal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.profile-edit-modal input:focus,
.profile-edit-modal .form-control:focus {
    background: var(--glass-fill-strong);
    border-color: var(--primary-color);
    box-shadow: none;
}

.profile-edit-modal #password {
    width: 100%;
}

.profile-edit-modal .btn-primary {
    width: 20%;
    min-width: 120px;
    background: var(--primary-color);
    border: none;
    box-shadow: var(--shadow-button);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    padding: 12px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-edit-modal .btn-primary:hover {
    background: var(--primary-dark);
}

/* ----- Modal footer ----- */
.profile-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-divider);
}

.profile-bottom span:first-child {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: var(--accent-soft);
}

.profile-bottom span:nth-child(2) {
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ----- Mobile ----- */
@media (max-width: 780px) {
    .profile-edit-modal {
        padding: 25px 20px;
    }

    #profileEditModal .modal-title {
        font-size: 24px;
    }

    .profile-edit-modal .btn-primary {
        width: 100%;
        margin-top: 15px;
    }

    .profile-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* =====================================================================
   Bootstrap .modal-content override  ·  forces glass theme over the
   default white card. (#profileEditModal + .glass-container share rules)
   ===================================================================== */
#profileEditModal .modal-content,
.modal-content.glass-container {
    background-color: transparent !important;
    background: var(--gradient-glass) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 0.5px solid var(--glass-border) !important;
    border-radius: var(--radius-xl) !important;
    color: #fff !important;
}

.modal-content.glass-container .modal-header {
    border-bottom: 1px solid var(--glass-divider) !important;
    padding: 20px 25px;
}

.modal-content.glass-container .modal-body {
    padding: 20px 25px 30px;
}

/* Tabs */
.modal-content.glass-container .nav-tabs {
    border-bottom: 1px solid var(--glass-border-strong);
    margin-bottom: 20px;
}

.modal-content.glass-container .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-weight: 500;
}

.modal-content.glass-container .nav-tabs .nav-link.active {
    background: transparent;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
}

.modal-content.glass-container .nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #fff;
}

/* Inputs & labels */
.modal-content.glass-container label {
    color: #fff !important;
    margin-bottom: 8px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    display: block;
}

.modal-content.glass-container input[type="text"],
.modal-content.glass-container input[type="email"],
.modal-content.glass-container .form-control {
    background: var(--glass-fill) !important;
    border: 1px solid var(--glass-border-strong) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 10px 15px;
}

.modal-content.glass-container input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Inline verify buttons (sit next to an input) */
.modal-content.glass-container .input-group .btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-soft);
    border: 1px solid var(--glass-border-strong);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
}

.modal-content.glass-container .input-group .btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Primary action button */
.modal-content.glass-container .btn-primary {
    background-color: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    padding: 12px;
    width: 100%;
    margin-top: 15px;
}

.modal-content.glass-container .btn-primary:hover {
    background-color: var(--primary-dark) !important;
}

/* Secondary / close button */
.modal-content.glass-container .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
}