/* styles.css */
/* Custom CSS styles for Darul Qur'an Leicester website */

/* Adding custom fonts if needed */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base styling */
* {
    font-family: 'Poppins', sans-serif;
}

/* Custom sidebar active state */
.sidebar-active {
    background-color: #EBD4C9;
    color: #07574c;
}

#toggleSidebar{
    background-color: #EBD4C9;
}

#toggleSidebar i {
    color: #07574c;
}

#toggleSidebar.toggle-btn-active{
    background-color: #07574c ;
}

#toggleSidebar.toggle-btn-active i{
    color: #EBD4C9;
}

.active-chat {
    background-color: #EBD4C9;
    color: #07574c !important;
    border-radius: 10px;
}

.active-chat-user {
    background-color: #07574c;
    color: #EBD4C9;
}

/* Custom animations */
.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Autofil Password Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: black !important;

}


/* Autofil Password Styling */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #115e59;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #134e4a;
}
.cstm-btn{
    background-color: #07574c;
    color: #fff;
    padding: 10px 20px;
}

.cstm-btn:hover{
    background-color: #14433c;
}


.cstm-tbl-btn{
    background-color: #07574c;
}

.cstm-tbl-btn:hover{
    background-color: #14433c;
}

/* Modal animation */
.modal-enter {
    opacity: 0;
    transform: scale(0.95);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 300ms, transform 300ms;
}

.modal-exit {
    opacity: 1;
    transform: scale(1);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 300ms, transform 300ms;
}

/* Custom table styling */
.custom-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.custom-table tr:hover {
    background-color: rgba(15, 118, 110, 0.05);
}

/* Form input styling */
.form-input:focus {
    border-color: #115e59;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

/* Button styling */
.primary-btn {
    background-color: #115e59;
    color: white;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background-color: #134e4a;
}

/* Status badges */
.status-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.status-unpaid {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Chat styling */
.chat-bubble-sent {
    background-color: #115e59;
    color: white;
    border-radius: 1rem;
    border-top-right-radius: 0;
}

.chat-bubble-received {
    background-color: #e0f2fe;
    color: #0c4a6e;
    border-radius: 1rem;
    border-top-left-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Login CSS */
.login-main {
    background-color: #07574c;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.left-side {
    width: 40%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-side {
    width: 55%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

input {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 10px !important;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.action-button {
    background-color: #F2D9BD;
    color: #07574c;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    font-size: 1rem;
}

.action-button:hover {
    opacity: 0.95;
    background-color: #dfcab2;
}

.forgot-password {
    text-align: right;
    color: white;
    font-size: 0.875rem;
    display: block;
    text-decoration: none;
}

.welcome-text {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 55px;
    font-weight: 500;
    color: white;
    margin-bottom: 2.5rem;
}

.form-label {
    color: white;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        padding: 2rem;
    }

    .left-side{
        width: 60%;
    }
}

@media (max-width: 768px) {

    .left-side,
    .right-side {
        width: 100%;
        padding: 0 1rem;
    }

    .left-side {
        margin-bottom: 2rem;
    }

    .logo {
        max-width: 200px;
    }

    .welcome-text {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
}

/* Login CSS */

.calendar-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-day.active {
    background-color: #115e59;
    color: white;
}

.class-block {
    border-left-width: 4px;
    padding-left: 10px;
}

.class-block.green {
    border-left-color: #10B981;
}

.class-block.orange {
    border-left-color: #F97316;
}

.class-block.purple {
    border-left-color: #8B5CF6;
}

/* Calender CSS */
/* Calendar CSS */
.calendar-container {
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.calendar-content {
    padding: 24px;
}

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

.header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
}

.nav-buttons {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 8px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Months Section */
.months-section {
    margin-bottom: 24px;
}

.months-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.months-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.months-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.months-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.months-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.months-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.months-grid {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.month-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.month-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.month-btn.active {
    background-color: #07574c;
    color: white;
}

/* Dates Section */
.dates-section {
    margin-bottom: 24px;
}

.dates-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dates-scroll-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.dates-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.dates-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.dates-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.dates-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dates-grid {
    display: flex;
    gap: 8px;
    padding: 4px 0;
}

.date-btn {
    min-width: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #374151;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
}

.date-btn .date-number {
    background-color: #D9D9D9;
    width: 35px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
}

.date-btn .date-day {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

.date-btn.other-month {
    opacity: 0.4;
}

.date-btn.selected .date-number {
    background-color: #07574c;
    color: white;
}

.date-btn.selected .date-day {
    border-bottom: 2px solid #07574c;
}

.date-btn.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #07574c;
    border-radius: 50%;
}

.date-btn.selected.today::after {
    background-color: rgba(255, 255, 255, 0.8);
}

.week-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.week-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 64px;
}

.week-day:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.week-day.selected {
    background-color: #07574c;
    color: white;
}

.week-day-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.week-day-number {
    font-size: 18px;
    font-weight: 600;
}

.events-section {
    background-color: white;
    border-radius: 16px;
    padding: 16px;
    min-height: 400px;
}

.events-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
}

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

.time-slot {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media screen and (max-width: 700px) {
    .time-slot{
        flex-direction: column;
    }

    .time-content{
        width: 100%;
        flex: auto !important;
    }
}

.time-badge {
    width: 100px;
    height: 45px;
    background-color: #07574c;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.time-content {
    flex: 1;
    height: 70px;
    position: relative;
    z-index: 26;
}

.time-content .time-content-span {
    width: 100%;
    border: 2px dotted #ede9fe;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 24;
}

.event-card {
    height: 100%;
    border-radius: 8px;
    border-left: 4px solid;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* position: absolute; */
    width: 100%;
    left: 0;
    z-index: 25;
}

.event-card.teal {
    background-color: #ccfbf1;
    border-left-color: #07574c;
}

.event-card.red {
    background-color: #fee2e2;
    border-left-color: #dc2626;
}

.event-card.purple {
    background-color: #ede9fe;
    border-left-color: #7c3aed;
}

.event-title {
    text-wrap: wrap;
    font-weight: 500;
    color: #374151;
}

.event-time {
    font-size: 14px;
    color: #6b7280;
}

.chevron {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.chevron-small {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Calender CSS */


.support-input{
    color: #07574c !important;
    border: none !important;
    outline: none !important;
}

.support-input::placeholder{
    color: rgb(156 163 175);
}

input:focus{
    outline: none !important;
}

@media screen and (max-width: 1200px) {
    .overflow-table{
        overflow-x: auto !important;
    }
}


div:where(.swal2-icon).swal2-warning{
    color: #07574c;
    border-color: #07574c;
}

.swal2-confirm{
    background-color: #07574c !important;
    color: #EBD4C9 !important;
}

.swal2-confirm.swal2-default-outline{
    color: #EBD4C9 !important;
}

.swal2-cancel{
    background-color: #EBD4C9 !important;
    color: #07574c !important;
}

.selected-date{
    background-color: #EBD4C9;
}

.has-events {
  position: relative;
}

.has-events::after {
  content: '';
  position: absolute;
  top: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white; /* Optional: makes the dot stand out */
  box-shadow: 0 0 0 1px red; /* Optional: more visible on light backgrounds */
}

.classBtn{
    border: 2px solid #07574c;
    max-width: 8rem;
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: #07574c;
}

.classBtn:hover{
    background-color: #14433c;
    color: #fff;
}

.classBtn.active{
    background-color: #07574c;
    color: #fff;
}

[aria-current="page"] span{
    color: #fff !important;
    background: #07574c !important;
}
