/* =====================================================
PROFILE CARD
===================================================== */

.profileCard{
    

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        145deg,
        #ffffff,
        #f8fbff
    );

    border-radius:18px;

    padding:18px;

    margin-bottom:150px;

    border:1px solid #e5e7eb;

    box-shadow:
    0 6px 18px rgba(0,0,0,0.05);

    transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.profileCard:hover{

    transform:
    translateY(-2px);

    box-shadow:
    0 12px 24px rgba(0,0,0,0.08);
}



/* =====================================================
HEADER
===================================================== */

.profileHeader{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:14px;

    margin-bottom:18px;

    flex-wrap:wrap;
}

.profileHeaderLeft{

    display:flex;

    align-items:center;

    gap:12px;
}


/* =====================================================
AVATAR
===================================================== */

.profileAvatar{

    width:52px;
    height:52px;

    border-radius:14px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-size:22px;

    box-shadow:
    0 8px 16px rgba(37,99,235,0.20);

    animation:
    avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-3px);
    }

    100%{
        transform:translateY(0px);
    }
}


/* =====================================================
TITLE
===================================================== */

.profileTitle{

    margin:0;

    font-size:20px;

    font-weight:800;

    color:#111827;
}

.profileSub{

    margin-top:3px;

    color:#6b7280;

    font-size:12px;

    line-height:1.5;
}


/* =====================================================
BUTTONS
===================================================== */

.profileActions{

    display:flex;

    gap:8px;

    flex-wrap:wrap;
}

.btnEdit,
.btnCancel,
.btnSave{

    border:none;

    outline:none;

    padding:9px 14px;

    border-radius:10px;

    font-size:12px;

    font-weight:700;

    color:white;

    cursor:pointer;

    transition:0.25s ease;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:6px;
}

.btnEdit{

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );
}

.btnCancel{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #ef4444
    );
}

.btnSave{

    background:
    linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );
}

.btnEdit:hover,
.btnCancel:hover,
.btnSave:hover{

    transform:
    translateY(-2px);

    opacity:0.92;
}


/* =====================================================
PROFILE GRID
===================================================== */

.profileGrid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:14px;
}


/* =====================================================
PROFILE ITEM
===================================================== */

.profileItem{

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        145deg,
        #ffffff,
        #f9fafb
    );

    border-radius:14px;

    padding:14px;

    border:1px solid #e5e7eb;

    display:flex;

    align-items:flex-start;

    gap:12px;

    transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.profileItem:hover{

    transform:
    translateY(-3px);

    box-shadow:
    0 10px 18px rgba(37,99,235,0.08);
}


/* =====================================================
ICON
===================================================== */

.profileIcon{

    width:40px;
    height:40px;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:15px;

    color:white;

    flex-shrink:0;

    transition:0.25s ease;
}

.profileItem:hover .profileIcon{

    transform:
    rotate(-5deg)
    scale(1.05);
}

.profileIcon.blue{
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );
}

.profileIcon.purple{
    background:
    linear-gradient(
        135deg,
        #7c3aed,
        #a855f7
    );
}

.profileIcon.green{
    background:
    linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );
}

.profileIcon.orange{
    background:
    linear-gradient(
        135deg,
        #ea580c,
        #fb923c
    );
}


/* =====================================================
CONTENT
===================================================== */

.profileContent{

    flex:1;
}

.profileContent label{

    display:block;

    font-size:10px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:0.8px;

    color:#6b7280;

    margin-bottom:6px;
}

.profileContent p{

    margin:0;

    font-size:13px;

    font-weight:700;

    color:#111827;

    word-break:break-word;
}


/* =====================================================
INPUT
===================================================== */

.editInput{

    width:100%;

    padding:9px 11px;

    border:1px solid #d1d5db;

    border-radius:9px;

    font-size:13px;

    font-weight:600;

    background:white;

    outline:none;

    transition:0.25s ease;
}

.editInput:focus{

    border-color:#2563eb;

    box-shadow:
    0 0 0 3px rgba(37,99,235,0.10);
}


/* =====================================================
ERROR
===================================================== */

.inputError{

    display:block;

    margin-top:5px;

    color:#dc2626;

    font-size:11px;

    font-weight:600;
}


/* =====================================================
STATUS
===================================================== */

.statusBadge{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:5px;

    padding:6px 12px;

    border-radius:999px;

    font-size:10px;

    font-weight:800;

    letter-spacing:0.7px;
}

.statusBadge.active{

    background:#dcfce7;

    color:#166534;
}


/* =====================================================
TOAST
===================================================== */

#toastBox{

    position:fixed;

    top:16px;
    right:16px;

    z-index:9999;

    display:flex;

    flex-direction:column;

    gap:10px;
}

.toast{

    min-width:200px;

    padding:11px 14px;

    border-radius:12px;

    color:white;

    font-size:12px;

    font-weight:700;

    box-shadow:
    0 8px 18px rgba(0,0,0,0.14);

    animation:
    toastSlide 0.25s ease;
}

.toast.success{

    background:
    linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );
}

.toast.error{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #ef4444
    );
}

@keyframes toastSlide{

    from{
        opacity:0;
        transform:
        translateX(100%);
    }

    to{
        opacity:1;
        transform:
        translateX(0);
    }
}


/* =====================================================
RESPONSIVE
===================================================== */

@media(max-width:768px){

    .profileCard{
        padding:16px;
    }

    .profileHeader{

        flex-direction:column;

        align-items:flex-start;
    }

    .profileActions{

        width:100%;
    }

    .btnEdit,
    .btnCancel,
    .btnSave{

        flex:1;
    }

    .profileGrid{

        grid-template-columns:1fr;
    }

}