/* Dashboard Profile — icopify.co */

body.dashboard-profile-page .dashboard-layout {
    display: block;
}

body.dashboard-profile-page .dashboard-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    background: #eef1f6;
    min-height: 100vh;
}

body.dashboard-profile-page .dashboard-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 250;
    background: #fff;
    justify-content: flex-end;
    min-height: 56px;
}

body.dashboard-profile-page .dashboard-content {
    padding: 76px 24px 90px;
    max-width: 1180px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.profile-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.profile-card-head {
    background: #1e3a5f;
    color: #fff;
    padding: 14px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.profile-card-head .text-gold {
    color: #facc15;
    font-weight: 700;
}

.profile-card-body {
    padding: 22px 20px 24px;
}

.profile-user-body {
    text-align: center;
    padding: 28px 20px 32px;
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #dbeafe;
    color: #3b82f6;
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
}

.profile-username-display {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.profile-form label .req {
    color: #ef4444;
}

.profile-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
}

.profile-form .form-control:read-only {
    background: #f8fafc;
    color: #64748b;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.profile-confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 20px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.profile-confirm-row input {
    margin-top: 3px;
    flex-shrink: 0;
}

.btn-profile-save {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-profile-save:hover {
    background: #1d4ed8;
}

.profile-paypal-add {
    display: block;
    width: 100%;
    padding: 14px 16px;
    text-align: center;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.profile-paypal-add:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.profile-paypal-field {
    margin-top: 14px;
}

.profile-paypal-field[hidden] {
    display: none;
}

.profile-notify-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.profile-notify-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.8125rem;
    color: #334155;
    line-height: 1.45;
}

.profile-notify-item label {
    flex: 1;
    cursor: pointer;
}

.profile-notify-item .highlight-rec {
    color: #ef4444;
    font-weight: 600;
}

.profile-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.profile-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.profile-toggle-slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.profile-toggle input:checked + .profile-toggle-slider {
    background: #2563eb;
}

.profile-toggle input:checked + .profile-toggle-slider::before {
    transform: translateX(20px);
}

@media (max-width: 992px) {
    body.dashboard-profile-page .dashboard-main {
        margin-left: 0;
        width: 100%;
    }

    body.dashboard-profile-page .dashboard-header {
        left: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}
