/* Premium Profile Modal Styles */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center; /* Centered instead of bottom sheet */
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    padding: 20px; /* Side padding for mobile */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 340px; /* Further reduced from 380px */
    border-radius: 20px; /* Slightly smaller radius */
    padding: 16px; /* Reduced from 20px */
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 85vh; /* Slightly less height */
    overflow-y: auto;
}

.profile-modal-overlay.active .profile-modal-container {
    transform: scale(1);
}

@media (min-width: 768px) {
    .profile-modal-container {
        max-width: 400px;
    }
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px; /* From 16px */
    text-align: center;
}

.profile-name {
    font-size: 16px; /* From 18px */
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.profile-role {
    font-size: 12px; /* From 14px */
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 10px; /* Reduced padding */
    border-radius: 20px;
    margin-top: 4px; /* From 6px */
    display: inline-block;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* From 12px */
    margin-bottom: 16px; /* From 24px */
}

.detail-item {
    background: #f8fafc;
    padding: 8px; /* From 10px */
    border-radius: 10px; /* From 12px */
    border: 1px solid #f1f5f9;
}

.detail-label {
    font-size: 10px; /* From 11px */
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 12px; /* From 14px */
    font-weight: 600;
    color: #334155;
    word-break: break-all;
}

.password-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px; /* From 16px */
}

.password-section h3 {
    font-size: 14px; /* From 15px */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px; /* From 12px */
}

.input-group {
    margin-bottom: 10px; /* From 12px */
}

.input-group label {
    display: block;
    font-size: 11px; /* From 12px */
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px; /* From 4px */
}

.input-group input {
    width: 100%;
    padding: 8px 12px; /* From 10px 14px */
    border: 1.5px solid #e2e8f0;
    border-radius: 8px; /* From 10px */
    font-size: 12px; /* From 13px */
    transition: all 0.2s;
    background: #ffffff;
}

.input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-update {
    width: 100%;
    padding: 10px; /* From 14px */
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: none;
    border-radius: 10px; /* From 12px */
    font-size: 13px; /* From 15px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-update:active {
    transform: translateY(0);
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

#passwordMsg {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    display: none;
}

#passwordMsg.success {
    background: #ecfdf5;
    color: #059669;
    display: block;
}

#passwordMsg.error {
    background: #fef2f2;
    color: #dc2626;
    display: block;
}
