* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    background: #11101D;
    padding: 6px 14px;
    z-index: 99;
    transition: all 0.5s ease;
}

.sidebar.open {
    width: 250px;
}

.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar .logo-details .icon {
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar .logo-details .logo_name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details .icon,
.sidebar.open .logo-details .logo_name {
    opacity: 1;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 22px;
    transition: all 0.4s ease;
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar i {
    color: #fff;
    height: 60px;
    min-width: 50px;
    font-size: 28px;
    text-align: center;
    line-height: 60px;
}

.sidebar .nav-list {
    margin-top: 20px;
    height: 100%;
}

.sidebar li {
    position: relative;
    margin: 8px 0;
    list-style: none;
}

.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar input {
    font-size: 15px;
    color: #FFF;
    font-weight: 400;
    outline: none;
    height: 50px;
    width: 100%;
    width: 50px;
    border: none;
    border-radius: 12px;
    transition: all 0.5s ease;
    background: #1d1b31;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
}

.sidebar .bx-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 22px;
    background: #1d1b31;
    color: #FFF;
}

.sidebar.open .bx-search:hover {
    background: #1d1b31;
    color: #FFF;
}

.sidebar .bx-search:hover {
    background: #FFF;
    color: #11101d;
}

.sidebar li a {
    display: flex;
    height: 100%;
    width: 100%;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
    background: #11101D;
}

.sidebar li a:hover {
    background: #FFF;
}

.sidebar li a .links_name {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar li a:hover .links_name,
.sidebar li a:hover i {
    transition: all 0.5s ease;
    color: #11101D;
}

.sidebar li i {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    border-radius: 12px;
}

.home-section {
    position: relative;
    justify-content: space-between;
    background: #E4E9F7;
    min-height: 100vh;
    top: 0;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 2;
}

.sidebar.open~.home-section {
    left: 250px;
    width: calc(100% - 250px);
}

@media (max-width: 420px) {
    .sidebar li .tooltip {
        display: none;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 78px;
    background: #11101D;
    padding: 6px 14px;
    z-index: 10;
    transition: all 0.5s ease;
}

.sidebar.open {
    width: 240px;
}

@media (max-width: 768px) {
    .sidebar {
        left: -78px;
        /* Hide sidebar by default on mobile */
        width: 78px;
    }

    .sidebar.open {
        left: 0;
        width: 240px;
        /* Slightly smaller when open on mobile */
    }

    /* Adjust home section for mobile */
    .home-section {
        left: 0 !important;
        width: 100% !important;
    }

    .sidebar.open~.home-section {
        left: 0 !important;
        width: 100% !important;
        filter: brightness(0.8);
        /* Dim the main content when sidebar is open */
    }

    /* Make sidebar overlay content instead of pushing it */
    .sidebar {
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    /* Optimize touch targets for mobile */
    .sidebar li {
        margin: 12px 0;
    }

    .sidebar li a {
        padding: 12px;
    }
}

/* Keep existing styles but override for mobile where needed */
.sidebar .logo-details {
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
}

/* Form styles */
.form_area {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #11101d;
    width: 400px;
    border: 2px solid #264143;
    border-radius: 20px;
    box-shadow: 3px 4px 0px 1px #A4B8C4;
    padding: 20px;
}

.title {
    font-weight: 900;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #E4E9F7;
}

.sub_title {
    font-weight: 600;
    margin: 5px 0;
    color: #A4B8C4;
}

.form_group {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    margin: 10px;
    width: 290px;
}

.form_group.inline {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.class-section {
    flex: 1;
}

.form_style {
    outline: none;
    border: 2px solid #264143;
    box-shadow: 3px 4px 0px 1px #A4B8C4;
    padding: 12px 10px;
    border-radius: 4px;
    font-size: 15px;
    color: #11101d;
    background-color: #E4E9F7;
    width: 100%;
    box-sizing: border-box;
}

.form_style:focus {
    transform: translateY(4px);
    box-shadow: 1px 2px 0px 0px #A4B8C4;
}

.btn {
    padding: 15px;
    margin: 25px 0;
    width: 290px;
    font-size: 15px;
    background: #DE5499;
    color: #E4E9F7;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    box-shadow: 3px 3px 0px 0px #A4B8C4;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #11101d;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%;
    max-width: 400px;
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.success-modal .modal-icon {
    color: #4CAF50;
}

.error-modal .modal-icon {
    color: #f44336;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E4E9F7;
}

.modal-message {
    font-size: 16px;
    color: #A4B8C4;
    margin-bottom: 20px;
    line-height: 1.4;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-modal .modal-btn {
    background-color: #4CAF50;
    color: white;
}

.error-modal .modal-btn {
    background-color: #f44336;
    color: white;
}

.modal-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Loading spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #E4E9F7;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.btn.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .form_area {
        width: 90%;
        margin: 0 10px;
    }

    .form_group {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

.chathurya-footer {
    background-color: #212529;
    color: #fff;
    padding: 40px 20px;
    z-index: 100;
    text-align: center;
  }
  .chathurya-footer .footer-logo {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
  }
  .chathurya-footer .footer-menu {
    margin: 20px 0;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .chathurya-footer .footer-menu li {
    display: inline-block;
  }
  .chathurya-footer .footer-menu li a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
  }
  .chathurya-footer .footer-social-icons {
    margin: 20px 0;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  .chathurya-footer .footer-social-icons li {
    display: inline-block;
  }
  .chathurya-footer .footer-social-icons a {
    color: #fff;
    font-size: 1.5rem;
    display: inline-block;
    padding: 10px;
    background-color: #495057;
    transition: background-color 0.3s, transform 0.3s;
  }
  .chathurya-footer .footer-social-icons a:hover {
    background-color: #6c757d;
    transform: scale(1.1);
  }
  .chathurya-footer .footer-copyright {
    font-size: 0.85rem;
    margin-top: 20px;
    color: #ced4da;
  }
  .chathurya-footer .heart {
    color: red;
  }
  
  .chathurya-footer .infinite {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: chartreuse;
  }