/* MyNukkad Profile Page Styles */
body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

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

/* Loading & Error Cards */
.profile-loading-card,
.profile-error-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.profile-loading-card i {
    font-size: 40px;
    color: #6d45ff;
    margin-bottom: 16px;
}

.profile-loading-card p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

.profile-error-card i {
    font-size: 44px;
    color: #ef4444;
    margin-bottom: 16px;
}

.profile-error-card p {
    color: #334155;
    font-size: 16px;
    margin: 0 0 20px 0;
}

/* Profile Card Generic Container */
.profile-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* 1. Header Card Specifics */
.profile-header-card {
    padding-top: 32px;
    padding-bottom: 32px;
}

/* Three-Dots Menu */
.three-dots-wrapper {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 50;
}

.three-dots-btn {
    background: #f1f5f9;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.three-dots-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.three-dots-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-item {
    width: 100%;
    padding: 10px 18px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s ease;
}

.dropdown-item i {
    font-size: 15px;
    color: #64748b;
    width: 18px;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #6d45ff;
}

.dropdown-item:hover i {
    color: #6d45ff;
}

/* Header Main Layout */
.header-main-layout {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Avatar Wrapper */
.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d45ff, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(109, 69, 255, 0.25);
    border: 4px solid #ffffff;
}

.default-avatar-icon {
    font-size: 54px;
    color: #ffffff;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-badge-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #6d45ff;
    color: #ffffff;
    border: 3px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.camera-badge-btn:hover {
    background: #5b32e0;
    transform: scale(1.08);
}

/* Header Info Details */
.header-info-details {
    flex-grow: 1;
}

.header-name {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
}

.header-meta-item i {
    color: #6d45ff;
    width: 16px;
    text-align: center;
}

.header-meta-item a {
    color: #6d45ff;
    text-decoration: none;
    font-weight: 500;
}

.header-meta-item a:hover {
    text-decoration: underline;
}

/* Header Action Buttons */
.header-action-btns {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-edit-profile {
    background: #6d45ff;
    color: #ffffff;
}

.btn-edit-profile:hover {
    background: #5b32e0;
}

.btn-change-photo {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

.btn-change-photo:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-remove-photo {
    background: #fff;
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-remove-photo:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.btn-primary {
    background: #6d45ff;
    color: #ffffff;
}

.btn-primary:hover {
    background: #5b32e0;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

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

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* 2. Section Titles */
.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.section-title-wrapper h2 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.section-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.color-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.color-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.color-orange {
    background: #ffedd5;
    color: #c2410c;
}

.color-green {
    background: #dcfce7;
    color: #15803d;
}

/* Info Grid Systems */
.info-grid {
    display: grid;
    gap: 20px;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4-col {
    grid-template-columns: repeat(4, 1fr);
}

.info-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 14px 18px;
}

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.full-width-box {
    width: 100%;
    box-sizing: border-box;
}

.margin-top-16 {
    margin-top: 16px;
}

.margin-top-20 {
    margin-top: 20px;
}

.margin-top-12 {
    margin-top: 12px;
}

.multiline-text {
    font-weight: 400;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line;
}

.bio-text {
    min-height: 48px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-active,
.badge-verified {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Toast Notification */
.profile-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    height: auto;
    overflow: hidden;
    animation: modalSlide 0.25s ease-out;
}

.modal-card form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-lg {
    max-width: 720px;
}

.modal-sm {
    max-width: 420px;
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #ffffff;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #0f172a;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
}

/* Modal Body Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #f8fafc;
    flex-shrink: 0;
}

/* Forms inside Modals */
.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #6d45ff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6d45ff;
    box-shadow: 0 0 0 3px rgba(109, 69, 255, 0.15);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.toggle-pwd-icon {
    position: absolute;
    right: 14px;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
}

.toggle-pwd-icon:hover {
    color: #0f172a;
}

/* Account Settings Toggles */
.settings-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1e293b;
}

.setting-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .header-main-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .header-meta-item {
        justify-content: center;
    }

    .header-action-btns {
        justify-content: center;
    }

    .grid-2-col,
    .grid-4-col {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 20px;
    }

    .three-dots-wrapper {
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 480px) {
    .profile-container {
        padding: 0 10px;
        margin: 16px auto;
    }

    .profile-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .header-user-name {
        font-size: 22px;
    }

    .header-action-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-profile-primary,
    .btn-profile-secondary {
        width: 100%;
        justify-content: center;
    }
}

