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

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}
header, footer {
    background-color: #fff;
    text-align: center;
    position: fixed;
    width: 100%;
    left: 0;
}
footer{
    padding-top: 15px;
}

header {
    top: 0;
    border-bottom: 2px solid #ccc;
    z-index: 9999;
}

footer {
    bottom: 0;
    border-top: 2px solid #ccc;
}
.top-header{
    height: auto;
    padding-bottom: 10px;
}
.top-header a{
    text-decoration: none;
    color: #4d4d4d;
}
.top-header .top-header-left{
    border-right: 0.1px solid #EEE;
    padding-top: 20px;
    padding-bottom: 20px;
}

.top-header .top-header-middile{
    border-right: 0.1px solid #EEE;
    padding-top: 3px;
    padding-bottom: 2px;
}
.top-header .top-header-right{
    display: block;
    float: right;
    padding-top: 25px;
}
.top-header .top-header-right span{
    margin-right: 15px!important;
    font-size: 20px;
}
.top-header .top-header-right img{
    border: 3px solid #4d4d4d;
    border-radius: 50%;
    cursor: pointer;
}
.top-header .top-header-right span input[type="search"]{
    border: 0.1px solid #EEE;
    padding: 5px 10px;
    border-radius: 20px;
}
.top-header .top-header-right span input[type="search"]::placeholder{
    font-size: 17px!important;
}
#profile{
    height: auto;
    padding-bottom: 2px;
    width: 100px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 0.1px solid #091057;
    position: absolute;
    z-index: 9999;
    right: 2%;
    border-radius: 3px;
    display: none;
    animation: growDown1 500ms ease-in-out forwards;
    transform-origin: top center;
}

#profile .logout a{
    display: block;
    text-align: left!important;
    padding: 6px;
    font-size: 14px;
}
#profile .admin-active{
    border-bottom: 0.1px solid #EEE;
}
#profile .logout a i{
    padding-right: 5px;
}
#profile .logout button{
    display: block;
    text-align: left!important;
    border: none;
    background-color: #fff;
    color: red;
    font-weight: bold;
    padding: 6px;
    font-size: 14px;
}
@keyframes growDown1 {
    0% {
        transform: scaleY(0)
    }
    80% {
        transform: scaleY(1.1)
    }
    100% {
        transform: scaleY(1)
    }
}
main {
    flex: 1;
    padding: 20px;
    margin: 120px 0px 100px 0px!important; /* Prevent overlap with fixed header and footer */
    overflow-y: hidden; /* Disable vertical scrolling */
}
.school-name {
    font-size: 22px;
    font-weight: bold;
    color: #091057;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* 3D effect using multiple shadows */
    text-shadow:
        1px 1px 0px #d1d1d1,   /* Light grey shadow */
        1px 1px 0px #a3a3a3,   /* Slightly darker shadow */
        2px 2px 0px #787878,   /* Darker shadow */
        3px 3px 0px #4d4d4d;   /* Darkest shadow */
}

/*main button start here */
#active{
     box-shadow: rgba(0, 0, 0, 0.4) 0px 1px 2px, rgba(0, 0, 0, 0.3) 0px 3px 2px -15px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
     background-color: #4300FF;
     color: #fff;
     border: none;
}
.navbar-btn nav .dropdown button{
    border: none;
    padding: 6px 10px;
    background-color: #fff;
    color: #787878;
    font-size: 14px;
    letter-spacing: 0.7px;
    border: 0.1px solid #EEE;
    margin-left: 6px;
    border-radius: 5px;
    cursor: pointer!important;
}
.navbar-btn nav a button{
    border: none;
    padding: 6px 10px;
    background-color: #fff;
    cursor: pointer!important;
    color: #787878;
    font-size: 14px;
    letter-spacing: 0.7px;
    border: 0.1px solid #EEE;
    margin-left: 6px;
    border-radius: 5px;
}
.navbar-btn nav a button:hover, .navbar-btn nav .dropdown button:hover{
    border: 0.1px solid #091057;
    transition: all 2s;
    cursor: pointer!important;
}
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button style */
.dropbtn {
    border: none;
    padding: 6px 10px;
    background-color: #fff;
    color: #787878;
    font-size: 14px;
    letter-spacing: 0.7px;
    border: 0.1px solid #EEE;
    margin-left: 6px;
    border-radius: 5px;
}
/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    margin-left: 5px;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
}
/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 6px 10px;
    text-decoration: none;
    display: block;
    color: #787878;
    text-align: left;
    font-size: 14px;
    border: 0.1px solid #EEE;
    border-radius: 5px;
}
/* Hover effects */
.dropdown-content a:hover {
    border: 0.1px solid #091057;
    transition: all 2s;
}
.dropdown:hover .dropdown-content {
    display: block;
}
#profile{
    display: none;
}
.home-title a{
    text-decoration: none;
    color: #4d4d4d;
}
.home-card{
    height: 100px;
    background-color: #fff;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.home-card .home-card-left{
    height: 100px;
    width: 30%;
    float: left;
    display: block;
    text-align: center;
    padding-top: 6.3%;
}
.home-card .home-card-left i{
    color: #FF7601;
    background-color: #FFEDF3;
    padding: 13px;
    border-radius: 50%;
    font-size: 30px;
}
.home-card .home-card-right{
    height: 100px;
    width: 70%;
    float: left;
}
.home-card .home-card-right .num{
    padding-right: 25px;
    font-size: 22px;
    font-family: 'Exo 2';
    padding-top: 16px;
    text-align: right;
    font-weight: bold;
}
.home-card .home-card-right .title{
     padding-right: 25px;
     letter-spacing: 1px;
     padding-top: 5px;
}
.total-print{
    padding-top: 6px;
}
.total-print a{
    color: #4b5563;
    text-decoration: none;
}
.chart-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    /* max-width: 1000px; */
    margin: auto;
    text-align: center;
    margin-top: 15px;
}
.chart-title {
    font-size: 17px;
    margin-bottom: 10px; /* reduce margin so circle is closer */
    color: #333;
    text-align: center;
    font-family: 'Exo 2';
}
/* Circle container for percentage */
.percentage-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 0px; /* centered and some space below */
}
.percentage-circle svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}
.percentage-circle circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}
.percentage-circle .bg {
    stroke: #eee;
}
.percentage-circle .progress {
    stroke: #00c853;
    stroke-dasharray: 339.292; /* 2 * PI * r (r=54) */
    stroke-dashoffset: 130.2; /* for 61.7% */
    transition: stroke-dashoffset 0.7s ease;
}
.percentage-circle .percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: #00c853;
    user-select: none;
}
.chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    padding: 0 10px;
    margin-bottom: 25px;
    overflow: visible;
    margin-top: -150px;
}
.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 55px;
    position: relative;
}
.bar {
    width: 100%;
    background: #4CAF50;
    border-radius: 8px 8px 0 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: 0.3s;
    color: #000;
    font-size: 12px;
    white-space: nowrap;
    overflow: visible;
}
.bar:hover {
    background: #388E3C;
}

.bar span {
    position: absolute;
    top: -22px;
    background: #fff;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.month {
    font-size: 12px;
    color: #555;
    margin-top: 8px;
}
.bottom-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}
.software-porform{
    height: 230px;
    padding-bottom: 20px;
    background-color: #fff;
    margin-top: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     display: flex;
    flex-direction: column;
    align-items: center; /* centers content horizontally */
    gap: 10px; /* space between span and circle */
    padding: 20px;
}
.software-porform span{
    font-family: 'Exo 2';
}
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}
.progress-circle svg {
    transform: rotate(-90deg);
}
.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: bold;
    color: #00c853;
    user-select: none;
}
.software-porform .payment-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #4300FF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FF7601; 
  color: #fff;
  font-size: 22px;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: borderFlash 1s infinite;
}
@keyframes borderFlash {
    0% {
        border-color: #4300FF;
        box-shadow: 0 0 0px #4300FF;
    }
    50% {
        border-color: #FF00FF; 
        box-shadow: 0 0 10px #FF00FF;
    }
    100% {
        border-color: #4300FF;
        box-shadow: 0 0 0px #4300FF;
    }
}
footer p{
    font-size: 14px;
}
@media(max-width:600px){
    .navbar-btn nav a button{
        margin-top: 10px;
    }
}
/* @media (max-width: 1350px) {
    .navbar-btn nav .dropdown button {
        font-size: 11px !important;
        font-weight: 500;
    }
    #active{
        font-weight: 500;
        font-size: 11px!important;
    }
   #desk-top button {
        font-size: 11px !important;
        font-weight: 500!important;
    }
    h1.school-name {
        font-size: 17px !important;
    }
    p.school-address{
        font-size: 12px!important;
    } 
    .top-header .top-header-right span{
        font-size: 11px!important;
    }
    .top-header .top-header-right span img{
        height: 30px!important;
        width: 30px!important;
    }
    .top-header .top-header-right input[type="search"]{
        height: 30px!important;
        padding-top: 10px!important;
    }
    .top-header .top-header-right input[type="search"]::placeholder{
        font-size: 12px!important;
    }
    #profile{
        width: 300px!important;
    }
    #profile a{
        font-size: 12px!important;
    }
    #profile button{
        font-size: 12px!important;
    }
} */
@media (max-width: 1440px) {
    .navbar-btn nav a button{
        font-size: 13px!important;
    }   
    .school-name{
        font-size: 23px!important;
    }  
    .top-header .top-header-left{
        padding-top: 10px!important;
    }
    .top-header .top-header-left a{
        font-size: 14px!important;
    }
    main{
        margin-top: 110px!important;
    }
    .home-card .title{
        font-size: 14px!important;
    }
    .home-card .num{
        font-size: 17px!important;
    }
    .top-header .top-header-right{
        padding-top: 18px!important;
    }
    .top-header .top-header-right span i{
        font-size: 15px!important;
    }
    footer p{
        font-size: 13px!important;
    }
    .software-porform span{
        font-size: 14px!important;
    }
}