/* Profile Settings Styles */
@import './common.css';

:root {
    --text-light: #6c757d;
}
body{
    padding:0;
    margin: 0;
    background: #f5f7fa !important;
}

/* Profile Settings Container */
.profile-settings-container {
    max-width: 800px;
    margin: 5em auto;
    min-height: auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    animation: slideIn 0.5s ease-out;
}

.profile-settings-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(76, 201, 240, 0.03) 0%, transparent 70%);
    animation: rotate-gradient 30s linear infinite;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    0% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Profile Header */
.profile-settings-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group input:disabled {
    background-color: rgba(245, 247, 250, 0.8);
    cursor: not-allowed;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 3rem;
    color: var(--primary-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

/* Update Section */
.update-section {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(248, 249, 252, 0.8);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.3s ease;
}

.update-section.show {
    display: block;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.profile-btn:active {
    transform: translateY(-1px);
}

.profile-btn-cancel {
    background: linear-gradient(45deg, #f5f7fa, #e4e7eb);
    color: var(--text-color);
}

/* Verification Warning */
.verification-warning {
    color: #856404;
    background-color: rgba(255, 243, 205, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 1;
}

.verification-warning i {
    margin-right: 0.5rem;
    color: #f7b924;
}

.verification-warning button {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.verification-warning button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

/* OTP Verification Styles */
.otp-section {
    display: none;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.otp-section.show {
    display: block;
}

.otp-timer {
    font-size: 0.85rem;
    color: var(--text-light);
    display: none;
}

.otp-timer.show {
    display: block;
    animation: fadeIn 0.3s ease;
    background-color: rgba(232, 245, 233, 0.8);
    color: #388e3c;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    /* margin: 1rem 0; */
    text-align: start;
    border-left: 3px solid #4caf50;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 100px; /* Positioned below navbar */
    right: 1.5rem;
    z-index: 2500; /* Below navbar z-index */
    max-width: 400px;
    width: 100%;
    perspective: 1000px;
}

.message {
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform-origin: top right;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
}

.message.error {
    background-color: var(--danger-color);
}

.message.success {
    background-color: var(--success-color);
}

.message.show {
    transform: translateX(4%);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2900; /* Below navbar z-index */
    flex-direction: column;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-settings-container {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .verification-warning {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-settings-container {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
}

/* IntlTelInput plugin specific styles */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags@2x.png");
    }

.profile-settings-container h1 {
	font-size: 1.5rem;
font-weight: 700;
}

.profile-section h2 {
	font-size: 18px;
	}

    .form-group label {
	color: #6f6f6f;
}

}