@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');

/* ─────────────────────────────────────────
   SETTINGS PAGE — BFA Ground Class
   Clean modern light theme
───────────────────────────────────────── */

/* ── PAGE HEADER ── */
.settings-page .settings-header {
    margin-bottom: 32px;
}

.settings-page .settings-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f5fe0;
    font-weight: 500;
    margin-bottom: 6px;
    font-family: 'DM Sans', sans-serif;
}

.settings-page .settings-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    font-weight: 400;
    color: #1a1f2e;
    line-height: 1.1;
    margin-bottom: 0;
}

.settings-page .settings-header p {
    font-size: 14px;
    color: #8e96a8;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ── SETTINGS CARD ── */
.settings-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8eaef;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Card header row */
.settings-card-header {
    padding: 22px 26px 20px;
    border-bottom: 1px solid #f0f1f5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon svg {
    width: 18px;
    height: 18px;
    color: #4f5fe0;
    stroke: #4f5fe0;
}

.settings-card-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1f2e;
    font-family: 'DM Sans', sans-serif;
}

.settings-card-sublabel {
    font-size: 12px;
    color: #8e96a8;
    margin-top: 2px;
    font-family: 'DM Sans', sans-serif;
}

/* ── FORM ── */
.settings-form {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-family: 'DM Sans', sans-serif;
}

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

.settings-group label {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0;
}

/* Input wrapper for icon positioning */
.settings-input-wrap {
    position: relative;
}

.settings-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #c0c5d0;
    stroke: #c0c5d0;
    pointer-events: none;
    transition: stroke 0.18s;
}

.settings-input-wrap:focus-within svg {
    stroke: #4f5fe0;
}

.settings-group input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #e2e5ec;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1f2e;
    background: #fafbfc;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.18s;
    outline: none;
    box-sizing: border-box;
}

.settings-group input:focus {
    border-color: #4f5fe0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 95, 224, 0.1);
}

.settings-group input[readonly] {
    background: #f5f6f8;
    color: #9ca3af;
    border-style: dashed;
    cursor: not-allowed;
}

.settings-field-hint {
    font-size: 11.5px;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* Divider between fields */
.settings-form-divider {
    height: 1px;
    background: #f0f1f5;
    margin: 2px 0;
}

/* ── ACTIONS ── */
.settings-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.settings-save {
    padding: 10px 22px;
    background: #4f5fe0;
    color: #ffffff;
    border: none;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
    width: auto;
    margin-top: 0;
}

.settings-save:hover {
    background: #3d4dc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 95, 224, 0.3);
}

.settings-save:active {
    transform: translateY(0);
    box-shadow: none;
}

.settings-cancel {
    padding: 10px 18px;
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e2e5ec;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s;
}

.settings-cancel:hover {
    border-color: #c0c5d0;
    color: #374151;
    background: #f9fafb;
}

/* ── TOAST ── */
.toast-success {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #d1fae5;
    color: #065f46;
    padding: 11px 18px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: toastSlide 0.35s ease;
}

.toast-success::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* =====================================================
SETTINGS PAGE RESPONSIVE FIX
Works for Desktop / Tablet / Mobile
===================================================== */

/* Ensure content uses full available space */
.settings-page.dashboard-content{
padding:32px 36px;
display:block;
}

/* Card width control */
.settings-card{
width:100%;
max-width:520px;
}

/* =====================================================
TABLET VIEW
===================================================== */

@media (max-width:1024px){

.settings-page.dashboard-content{
padding:28px 28px;
}

.settings-header h1{
font-size:26px;
}

.settings-card{
max-width:100%;
}

.settings-form{
padding:22px 22px 24px;
}

}

/* =====================================================
MOBILE VIEW
===================================================== */

@media (max-width:640px){

/* Fix mobile sidebar topbar offset */
.settings-page.dashboard-content{
padding:20px 16px 30px;
margin-top:58px;
}

/* Header spacing */
.settings-header{
margin-bottom:22px;
}

.settings-header h1{
font-size:24px;
}

.settings-header p{
font-size:13px;
}

/* Card */
.settings-card{
border-radius:12px;
}

/* Form spacing */
.settings-form{
padding:18px 18px 20px;
gap:16px;
}

/* Inputs */
.settings-group input{
font-size:16px; /* prevents iOS zoom */
padding:12px 14px 12px 40px;
}

/* Button full width */
.settings-save{
width:100%;
padding:14px;
font-size:15px;
border-radius:10px;
}

/* Cancel button full width if used */
.settings-cancel{
width:100%;
padding:14px;
font-size:15px;
}

/* Stack buttons */
.settings-actions{
flex-direction:column;
align-items:stretch;
gap:8px;
}

}

/* =====================================================
SMALL PHONE
===================================================== */

@media (max-width:380px){

.settings-header h1{
font-size:22px;
}

.settings-form{
padding:16px 16px 18px;
}

.settings-group input{
padding:11px 12px 11px 38px;
}

}

/* =====================================================
TOAST MOBILE FIX
===================================================== */

@media (max-width:640px){

.toast-success{
left:16px;
right:16px;
transform:none;
width:auto;
justify-content:center;
font-size:12.5px;
}

}