
.school-dashboard {
    background: #f4f7fc;
}

.dashboard-card {
    height: 100%;
    min-height: 480px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 45, 100, .12);
}

.dashboard-heading {
    min-height: 68px;
    padding: 18px 12px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.circular-card .dashboard-heading {
    background: linear-gradient(120deg, #0874d1, #003d9e);
}

.birthday-card .dashboard-heading {
    background: #1e388f;
}

.calendar-card .dashboard-heading {
    background: #1e388f;
}

.dashboard-content {
    /*padding: 15px;*/
}

.birthdaySwiper {
    position: relative;
    padding: 10px 35px 20px;
    text-align: center;
}

.student-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #f5c928;
    border-radius: 20px;
    margin: 5px auto 15px;
    display: block;
}

/*.birthdaySwiper h3 {*/
/*    background: #1e388f;*/
/*    color: #fff;*/
/*    padding: 12px;*/
/*    border-radius: 30px;*/
/*    font-size: 21px;*/
/*}*/

.birthdaySwiper h4 {
    color: #003c85;
    font-size: 16px;
    margin-top: 20px;
}

.birthdaySwiper p {
    margin-bottom: 5px;
    font-weight: 600;
    margin-top:5px;
}

.birthdaySwiper .swiper-button-next,
.birthdaySwiper .swiper-button-prev {
    color: white;
    transform: scale(.7);
    position: absolute;
    top: 105px;
    background-color: #0757aa;
    border-radius: 50%;
    width:50px;
    height:50px;
}

.birthdaySwiper .swiper-button-next{
    right:125px ;
}

.birthdaySwiper .swiper-button-prev{
    left:125px;
}

.calendar-header {
    background: #ffe74a;
    color: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.calendar-header button {
    border: 0;
    background: transparent;
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
    margin-top: 15px;
}

.calendar-weekday,
.calendar-date {
    min-width: 0;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 700;
}

.calendar-weekday {
    background: #0874d1;
    color: #fff;
    font-size: 11px;
}

.weekday-5 {
    background: #0874d1;
}



.calendar-date {
    background: #f0f2f5;
    cursor: pointer;
    font-size: 14px;
}

.calendar-date:hover {
    background: #d8eaff;
}

.calendar-date.today {
    background: #0874d1;
    color: white;
}

/*.calendar-date.saturday {*/
/*    color: #087c43;*/
/*}*/



.calendar-date.today {
    color: white;
}

.calendar-date.has-event {
    outline: 2px solid #ff9800;
    outline-offset: -2px;
}

.calendar-date.other-month {
    opacity: .35;
}

.event-details {
    margin-top: 15px;
    font-size: 13px;
}

.event-item {
    background: #f1f6ff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
}

@media(max-width: 767px) {
    .dashboard-card {
        min-height: auto;
    }

    .dashboard-heading {
        font-size: 16px;
    }

    .calendar-weekday,
    .calendar-date {
        min-height: 35px;
        font-size: 12px;
    }
    
}

.space{
        padding-top: 80px  !important;
    }

@media(max-width: 768px) {
    .space{
        padding-top: 50px !important;
    }
    
    
    .birthdaySwiper .swiper-button-next{
        right:25px ;
    }
    
    .birthdaySwiper .swiper-button-prev{
        left:25px;
    }
    
    .bday-decor .star,
    .bday-decor .spark {
        position: absolute;
        animation: bdayTwinkle 2.8s ease-in-out infinite;
    }
    
    .bday-decor .star {
        width: 16px;
        height: 16px;
        background: #f5c928;
        clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    }
    
    .bday-decor .spark {
        width: 10px;
        height: 10px;
        background: #0874d1;
        clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
    }
}


.dashboard-card {
    height: 100%;
    min-height: 480px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,45,100,.12);
}

.dashboard-heading {
    min-height: 68px;
    padding: 18px 12px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.birthday-card .dashboard-heading {
    background: #1e388f;
}

.calendar-card .dashboard-heading {
    background: #1e388f;
}

.dashboard-content {
    /*padding: 15px;*/
}

.birthdaySwiper {
    position: relative;
    padding: 10px 35px 20px;
    text-align: center;
}

.student-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #f5c928;
    border-radius: 20px;
    margin: 5px auto 15px;
    display: block;
}

.birthdaySwiper h3 {
    border:1px solid #1e388f;
    color: #1e388f;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 21px;
    margin: 0 auto; 
    width: fit-content;
    /*display: flex;*/
    /*justify-content: center;*/
}

.birthdaySwiper h4 {
    color: #003c85;
    font-size: 17px;
    margin-top: 20px;
}

.birthdaySwiper p {
    margin-bottom: 5px;
    font-weight: 600;
}

.birthdaySwiper .swiper-button-next,
.birthdaySwiper .swiper-button-prev {
    /*color: #0757aa;*/
    transform: scale(.7);
}

.calendar-header {
    background: #ffe74a;
    color: white;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calendar-header h4 {
    margin: 0;
    font-size: 19px;
    color: #1e388f;
}

.calendar-header button {
    border: 0;
    background: transparent;
    color: white;
    font-size: 23px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 6px;
}

.calendar-weekday,
.calendar-date {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 700;
}

.calendar-weekday {
    background: #0874d1;
    color: white;
    font-size: 12px;
}



.weekday-6 {
    background: #e5411a;
}

.calendar-date {
    background: #f0f2f5;
    cursor: default;
    font-size: 15px;
}

.calendar-date.today {
    background: #0874d1;
    color: white;
}

/*.calendar-date.saturday {*/
/*    color: #087c43;*/
/*}*/

.calendar-date.sunday {
    color: #e5411a;
}

.calendar-date.today {
    color: white;
}

.calendar-date.other-month {
    opacity: .35;
}

@media(max-width:767px) {

    .dashboard-card {
        min-height: auto;
    }

    .calendar-weekday,
    .calendar-date {
        min-height: 38px;
        font-size: 11px;
    }

    .student-photo {
        width: 155px;
        height: 155px;
    }

}

.calendar-date.today {
    background: #0874d1 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-weight: 800;
    border: 2px solid #0874d1;
    box-shadow: 0 3px 8px rgba(8, 116, 209, 0.25);
}

/* =====================================
   BIRTHDAY CARD DECORATION (subtle)
===================================== */
.birthday-card {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #f1f6ff 100%);
}

.birthday-card .dashboard-heading,
.birthday-card .dashboard-content {
    position: relative;
    z-index: 1;
}

.birthday-card .birthdaySwiper {
    padding-bottom: 70px; /* gift + cake row sathi jaga */
}

.bday-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* birthday nasel tevha decoration lapva */
.birthday-card:has(.birthdaySwiper[style*="none"]) .bday-decor {
    display: none;
}

/* ---------- Balloons ---------- */
.bday-decor .balloon {
    position: absolute;
    width: 30px;
    height: 38px;
    border-radius: 50% 50% 46% 46%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255,255,255,.6) 0 10%, transparent 11%),
        var(--c);
    opacity: .85;
    animation: bdayFloat 5s ease-in-out infinite;
}

.bday-decor .balloon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 8px;
    height: 7px;
    transform: translateX(-50%);
    background: var(--c);
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.bday-decor .balloon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    width: 1px;
    height: 34px;
    background: rgba(30, 56, 143, .3);
}

.bday-decor .balloon.b1 { left: 20px;  top: 92px;  --c: #0874d1; }
.bday-decor .balloon.b2 { left: 56px;  top: 122px; --c: #f5c928; width: 24px; height: 31px; animation-delay: -1.5s; }
.bday-decor .balloon.b3 { right: 20px; top: 92px;  --c: #1e388f; animation-delay: -.8s; }
.bday-decor .balloon.b4 { right: 56px; top: 122px; --c: #f5c928; width: 24px; height: 31px; animation-delay: -2.3s; }

/* ---------- Stars & sparkles ---------- */
.bday-decor .star,
.bday-decor .spark {
    position: absolute;
    animation: bdayTwinkle 2.8s ease-in-out infinite;
}

.bday-decor .star {
    width: 16px;
    height: 16px;
    background: #f5c928;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.bday-decor .spark {
    width: 10px;
    height: 10px;
    background: #0874d1;
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

.bday-decor .s1  { left: 80px;  top: 200px; }
.bday-decor .s2  { right: 84px; top: 185px; animation-delay: -1s; }
.bday-decor .s3  { left: 60px;  top: 345px; animation-delay: -1.8s; }

.bday-decor .sp1 { left: 130px;  top: 108px; animation-delay: -.5s; }
.bday-decor .sp2 { right: 130px; top: 118px; animation-delay: -1.4s; background: #f5c928; }
.bday-decor .sp3 { right: 64px;  top: 250px; animation-delay: -2.1s; }

/* ---------- Gifts + Cake ---------- */
.bday-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 28px;
}

.bday-bottom .gift {
    position: relative;
    width: 34px;
    height: 30px;
    border-radius: 4px;
    background: var(--c, #1e388f);
    animation: bdayBounce 3s ease-in-out infinite;
}

.bday-bottom .g1 { --c: #1e388f; }
.bday-bottom .g2 { --c: #0874d1; animation-delay: -1.2s; }

.bday-bottom .gift::before { /* vertical ribbon */
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 7px;
    transform: translateX(-50%);
    background: #f5c928;
}

.bday-bottom .gift::after { /* horizontal ribbon */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 6px;
    background: #f5c928;
}

.bday-bottom .gift b { /* bow */
    position: absolute;
    left: 50%;
    top: -8px;
    width: 12px;
    height: 8px;
    transform: translateX(-50%);
    border: 2px solid #f5c928;
    border-radius: 50% 50% 0 0;
    z-index: 1;
}

.bday-bottom .cake {
    font-size: 34px;
    line-height: 1;
    animation: bdayBounce 3s ease-in-out infinite;
    animation-delay: -.6s;
}

/* ---------- Photo soft glow ---------- */
.birthdaySwiper .student-photo {
    animation: bdayGlow 3s ease-out infinite;
}

/* ---------- Animations ---------- */
@keyframes bdayFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}

@keyframes bdayTwinkle {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%      { opacity: 1;  transform: scale(1.15); }
}

@keyframes bdayBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@keyframes bdayGlow {
    0%   { box-shadow: 0 0 0 0 rgba(245, 201, 40, .4); }
    70%  { box-shadow: 0 0 0 12px rgba(245, 201, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 201, 40, 0); }
}

/* ---------- Mobile: kami decoration ---------- */
@media (max-width: 575px) {
    /*.bday-decor .sp1,*/
    /*.bday-decor .sp2,*/
    /*.bday-decor .s1,*/
    /*.bday-decor .s2,*/
    /*.bday-decor .balloon.b2,*/
    /*.bday-decor .balloon.b4 {*/
    /*    display: none;*/
    /*}*/

    .bday-decor .balloon.b1 { left: 14px;  top: 90px; }
    .bday-decor .balloon.b3 { right: 14px; top: 90px; }
}

/* motion nako asel tar (accessibility) */
@media (prefers-reduced-motion: reduce) {
    /*.bday-decor *,*/
    /*.birthdaySwiper .student-photo {*/
    /*    animation: none !important;*/
    /*}*/
}


/* =====================================
   BIRTHDAY CARD DECORATION
===================================== */
/*.birthday-card {*/
/*    --gold: #f5c928;*/
/*    --blue: #0874d1;*/
/*    --navy: #1e388f;*/

/*    position: relative;*/
/*    background: linear-gradient(180deg, #fff, #f1f6ff);*/
/*}*/

/*.birthday-card .dashboard-heading,*/
/*.birthday-card .dashboard-content {*/
/*    position: relative;*/
/*    z-index: 1;*/
/*}*/

/*.birthday-card .birthdaySwiper {*/
    /*padding-bottom: 84px; */
    /* khali gift + cake sathi jaga 
/*}*/

/* name banner chya baju che extra shapes */
/*.birthdaySwiper h3::before,*/
/*.birthdaySwiper h3::after {*/
/*    content: none !important;*/
/*}*/

/* ---------- Layer ---------- */
/*.bday-decor {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    z-index: 0;*/
/*    overflow: hidden;*/
/*    pointer-events: none;*/
/*}*/

/* birthday nasel tevha lapva */
/*.birthday-card:has(.birthdaySwiper[style*="none"]) .bday-decor {*/
/*    display: none;*/
/*}*/

/* ---------- Balloons ---------- */
/*.balloon {*/
/*    position: absolute;*/
/*    top: 92px;*/
/*    width: 30px;*/
/*    height: 38px;*/
/*    border-radius: 50% 50% 46% 46%;*/
/*    background: var(--c);*/
/*    animation: float 5s ease-in-out infinite;*/
/*}*/

/*.balloon::after {  string */
/*    content: "";*/
/*    position: absolute;*/
/*    top: 100%;*/
/*    left: 50%;*/
/*    width: 1px;*/
/*    height: 34px;*/
/*    background: rgba(30, 56, 143, .3);*/
/*}*/

/*.balloon.left  { left: 24px;  --c: var(--blue); }*/
/*.balloon.right { right: 24px; --c: var(--navy); animation-delay: -1.5s; }*/

/* ---------- Stars & sparkles ---------- */
/*.star,*/
/*.spark {*/
/*    position: absolute;*/
/*    animation: twinkle 2.8s ease-in-out infinite;*/
/*}*/

/*.star {*/
/*    width: 14px;*/
/*    height: 14px;*/
/*    background: var(--gold);*/
/*    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);*/
/*}*/

/*.spark {*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    background: var(--blue);*/
/*    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);*/
/*}*/

/*.star.left   { left: 80px;  top: 200px; }*/
/*.star.right  { right: 84px; top: 185px; animation-delay: -1s; }*/
/*.spark.left  { left: 60px;  top: 340px; animation-delay: -1.8s; }*/
/*.spark.right { right: 64px; top: 250px; animation-delay: -2.1s; }*/

/* ---------- Gifts + Cake ---------- */
.bday-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 26px;
}

.bday-bottom svg {
    filter: drop-shadow(0 4px 5px rgba(30, 56, 143, .2));
    animation: bounce 3s ease-in-out infinite;
}


/*imp*/
.cake {
    width: 54px;
    height: 60px;
    animation-delay: -.6s;
}

/* ---------- Photo glow ---------- */
.birthdaySwiper .student-photo {
    animation: glow 3s ease-out infinite;
}

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes twinkle {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%      { opacity: 1;  transform: scale(1.15); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

@keyframes glow {
    0%   { box-shadow: 0 0 0 0 rgba(245, 201, 40, .4); }
    70%  { box-shadow: 0 0 0 12px rgba(245, 201, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 201, 40, 0); }
}

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
    /*.star,*/
    /*.spark { display: none; }*/

    .balloon.left  { left: 14px; }
    .balloon.right { right: 14px; }
}

/* motion nako asel tar */
@media (prefers-reduced-motion: reduce) {
    /*.bday-decor *,*/
    /*.birthdaySwiper .student-photo { animation: none !important; }*/
}

/* shejarche slides lapva, fakt active slide dakhva */
.birthdaySwiper .swiper-slide {
    opacity: 0;
    transition: opacity .35s ease;
}

.birthdaySwiper .swiper-slide-active {
    opacity: 1;
}

.dashboard-content p{
    color:#1e388f;
}
.swiper-button-next:after{
    font-size: 23px;
}
.swiper-button-prev:after{
    font-size: 23px;
}