/* =====================================================
   1. RESET & BASE
===================================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Segoe UI', Arial, sans-serif;
background:linear-gradient(135deg,#eef2ff,#f8fafc);
color:#1f2937;
}


/* =====================================================
   2. LAYOUT
===================================================== */

.main{
padding:25px;
min-height:100vh;
margin-top:50px;
}


/* =====================================================
   3. CARD SYSTEM (UPGRADED)
===================================================== */

.card{
background:#ffffff;
border-radius:16px;
box-shadow:0 6px 20px rgba(0,0,0,0.06);
transition:0.3s ease;
}

.card:hover{
transform:translateY(-2px);
box-shadow:0 20px 28px rgba(0, 0, 0, 0.268);
}

.profileCard{
padding:20px;
position:relative;
overflow:hidden;
}




/* =====================================================
   4. HEADER
===================================================== */

.cardHead{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:18px;
}

.cardHead h3{
font-size:17px;
font-weight:600;
}


/* =====================================================
   5. BUTTON SYSTEM
===================================================== */

.actionBtns{
display:flex;
gap:8px;
}

.actionBtns button{
border:none;
padding:6px 12px;
border-radius:8px;
font-size:12px;
cursor:pointer;
transition:0.2s;
}

.actionBtns button:hover{
opacity:0.9;
transform:translateY(-1px);
}

.btnEdit{background:#2563eb;color:#fff;}
.btnCancel{background:#6b7280;color:#fff;}
.btnSave{background:#16a34a;color:#fff;}


/* =====================================================
   6. GRID  3 COLUMN)
===================================================== */

.infoGrid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:14px;
}


/* =====================================================
   7. PROFILE ITEM (NEW STYLE)
===================================================== */

.infoItem{
display:flex;
align-items:center;
gap:10px;
padding:10px 12px;
border-radius:10px;
background:linear-gradient(135deg,#f9fafb,#f1f5f9);
border:1px solid #eef2ff;
transition:0.2s ease;
}

.infoItem:hover{
background:#eef2ff;
transform:scale(1.01);
}


/* =====================================================
   8. ICON SYSTEM
===================================================== */

.icon{
width:30px;
height:30px;
border-radius:8px;
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:12px;
flex-shrink:0;
}

/* color variants */
.blue{background:#2563eb;}
.green{background:#16a34a;}
.purple{background:#7c3aed;}
.orange{background:#f59e0b;}
.pink{background:#ec4899;}
.teal{background:#14b8a6;}
.gray{background:#6b7280;}


/* =====================================================
   9. TEXT STYLE (IMPROVED)
===================================================== */

.infoItem div{
display:flex;
flex-direction:column;
}

.infoItem label{
font-size:13px;
color:#6b7280;
letter-spacing:0.3px;
}

.infoItem p{
font-size:12px;
font-weight:500;
}


/* =====================================================
   10. INPUT (EDIT MODE)
===================================================== */

.editField{
display:none;
margin-top:4px;
padding:5px 7px;
font-size:12px;
border-radius:6px;
border:1px solid #d1d5db;
}

.editField:focus{
border-color:#2563eb;
outline:none;
box-shadow:0 0 0 2px rgba(37,99,235,0.15);
}


/* =====================================================
   11. BADGE
===================================================== */

.badge{
padding:3px 8px;
border-radius:999px;
font-size:10px;
font-weight:600;
}

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


/* =====================================================
   12. RESPONSIVE
===================================================== */

@media(max-width:1024px){
.infoGrid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:640px){
.infoGrid{
grid-template-columns:1fr;
}

.cardHead{
flex-direction:column;
align-items:flex-start;
gap:10px;
}
}


/* =====================================================
   13. MICRO INTERACTIONS
===================================================== */

.infoItem,
button{
transition:all 0.2s ease;
}


/* ================= UPCOMING EVENTS ================= */

.upcomingSection{
    margin-top:80px;
}

.sectionTitle{
    margin-top:30px;
    font-size:20px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:30px;
}

/* ================= WRAPPER ================= */

.upcomingWrapper{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* ================= EVENT ROW ================= */

.eventRow{

    background:#fff;

    border:1px solid #e2e8f0;

    border-radius:24px;

    padding:16px 24px;

    display:flex;

    align-items:center;

    gap:26px;

    transition:0.25s ease;

    box-shadow:
    0 4px 12px rgba(0,0,0,0.03);
}

.eventRow:hover{

    transform:translateY(-3px);

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

/* ================= DATE ================= */

.eventDate{

    min-width:100px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    position:relative;
}

.eventDate::after{

    content:"";

    position:absolute;

    right:-14px;

    top:50%;

    transform:translateY(-50%);

    width:1px;

    height:80px;

    background:#e2e8f0;
}

.dateDay{

    font-size:17px;

    font-weight:800;

    line-height:1;

    color:#0f2f5f;
}

.dateMonth{

    margin-top:8px;

    font-size:19px;

    font-weight:700;

    color:#2563eb;

    letter-spacing:1px;
}

/* ================= BODY ================= */

.eventBody{
    flex:1;
}

.eventTitle{

    font-size:17px;

    font-weight:700;

    color:#0f172a;

    margin-bottom:14px;
}

/* ================= META ================= */

.eventMeta{

    display:flex;

    flex-wrap:wrap;

    gap:26px;
}

.metaItem{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:14px;

    color:#334155;

    font-weight:500;
}

.metaItem i{

    color:#94a3b8;

    font-size:12px;
}

/* ================= EMPTY ================= */

.emptyUpcoming{

    background:#fff;

    border-radius:22px;

    padding:60px 20px;

    text-align:center;

    border:1px dashed #cbd5e1;

    color:#94a3b8;
}

.emptyUpcoming i{

    font-size:55px;

    margin-bottom:14px;
}

.emptyUpcoming p{

    font-size:20px;
}

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

@media(max-width:768px){

    .eventRow{

        flex-direction:column;

        align-items:flex-start;
    }

    .eventDate{

        width:100%;

        flex-direction:row;

        gap:10px;

        justify-content:flex-start;
    }

    .eventDate::after{
        display:none;
    }

    .dateDay{
        font-size:40px;
    }

    .dateMonth{
        font-size:18px;
        margin-top:0;
    }

    .eventTitle{
        font-size:24px;
    }

    .metaItem{
        font-size:15px;
    }

}


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

.toast{

    position: fixed;

    top: 24px;

    right: 24px;

    min-width: 280px;

    max-width: 380px;

    padding: 16px 20px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 600;

    color: #fff;

    background: #222;

    box-shadow:
    0 10px 25px rgba(0,0,0,0.18);

    z-index: 99999;

    opacity: 0;

    visibility: hidden;

    transform:
    translateY(-20px);

    transition:
    all 0.28s ease;

    display: flex;

    align-items: center;

    gap: 10px;
}

/* SHOW */

.toast.show{

    opacity: 1;

    visibility: visible;

    transform:
    translateY(0);
}

/* SUCCESS */

.toast.success{

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

/* ERROR */

.toast.error{

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

/* INFO */

.toast.info{

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

/* MOBILE */

@media(max-width:600px){

    .toast{

        top: 15px;

        right: 15px;

        left: 15px;

        min-width: auto;

        max-width: none;

        width: auto;

        font-size: 13px;

        padding: 14px 16px;
    }
}

