/* Body styling with a modern gradient background */
/* body {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
} */

/* Container for the teaching plan */
.container-teachers-diary {
    width: 75%;
    margin: 1rem auto;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    /*3Dboxshadow*/
    transition: all 0.3s ease-in-out;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    line-height: 1.5;
}

/* Heading styles */
.container-teachers-diary h1 {
    text-align: center;
    color: #f122b7;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-decoration: underline;
    text-underline-offset: 6px;
}

.container-teachers-diary h2 {
    text-align: center;
    color: #2c5282;
    font-size: 22px;
    margin-top: 0;
}

/* Table styling */
.plan-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 3D box shadow */
    transition: transform 0.3s ease;

}

.plan-table th,
.plan-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
    transition: background-color 0.3s ease;
}

.plan-table th {
    background: linear-gradient(90deg, #3182ce, #2b6cb0);
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.plan-table td {
    background-color: #f7fafc;
}

.plan-table tr:hover td {
    background-color: #bee3f8;
    /* Hover effect */
    cursor: pointer;
}

.plan-table th:hover {
    background: linear-gradient(90deg, #2b6cb0, #2c5282);
    /* Hover effect for headers */
}

/* Section title styling */
.section-title {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #1a3c5e;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 5px;
}

/* Note section styling */
.note {
    background-color: #edf2f7;
    padding: 15px;
    border-left: 6px solid #3182ce;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* 3D box shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    /* Hover lift effect */
}

/* Responsive design for tablets (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container-teachers-diary {
        width: 90%;
        padding: 15px;
    }

    .container-teachers-diary h1 {
        font-size: 24px;
    }

    .container-teachers-diary h2 {
        font-size: 20px;
    }

    .plan-table th,
    .plan-table td {
        padding: 10px;
        font-size: 15px;
    }

    .section-title {
        font-size: 18px;
    }

    .note {
        padding: 12px;
    }
}

/* Responsive design for mobile devices (max-width: 600px) */
@media screen and (max-width: 800px) {
    .container-teachers-diary {
        width: 90%;
        padding: 10px;
    }

    .container-teachers-diary h1 {
        font-size: 1.4rem;
    }

    .container-teachers-diary h2 {
        font-size: 1.2rem;
    }

    .container-teachers-diary h3 {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .plan-table th{
        text-wrap: wrap;
    }

    .plan-table {
        display: block;
        overflow-x: auto;
        white-space: wrap;
    }

    .plan-table th,
    .plan-table td {
        font-size: 1rem;
        padding: 8px;
        min-width: 100px; 

        }

    .plan-table th {
        font-size: 1rem;
        /* text-align: center; */
        /* min-width: 100px; */
        /* width: 100%; */
    }

    .section-title {
        font-size: 16px;
    }

    .note p {
        padding: 10px;
        font-size: 14px;
        margin-bottom: .5rem;
    }

    /* Stack table rows for better mobile readability */
    .plan-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .plan-table tr {
        display: block;
        margin-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
        text-wrap: wrap;
    }
}

@media screen and (max-width:480px) {
    .container-teachers-diary{
        width: 100%;
    }
    .plan-table th,
    .plan-table td {
        font-size: 1rem;
        padding: 4px;
        min-width: 70px; 

        } 
}
    /* .plan-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #e2e8f0;
    } */
    /* 
    .plan-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        text-align: left;
        color: #2c5282;
    } */

    /* .plan-table td:first-child:before {
        content: "दिनांक";
    }

    .plan-table td:nth-child(2):before {
        content: "कक्षा एवं विषय";
    }

    .plan-table td:nth-child(3):before {
        content: "प्रकरण / लर्निंग आउटकम";
    }

    .plan-table td:nth-child(4):before {
        content: "शिक्षण अधिगम प्रक्रिया";
    } */

    /* ------------------------------------------------------------ */
    /* pagination */
    /* ------------------------------------------------------------ */

    .pagination {
        margin: 20px 0;
        text-align: center;
    }

    .pagination button {
        padding: 10px 15px;
        margin: 0 5px;
        border: 1px solid #ccc;
        background-color: #f9f9f9;
        cursor: pointer;
        font-family: 'Noto Sans Devanagari', sans-serif;
        font-size: 16px;
    }

    .pagination button:hover {
        background-color: #e0e0e0;
    }

    .pagination button.active {
        background-color: #4CAF50;
        color: white;
        border-color: #4CAF50;
    }

    .pagination button:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

    .week-section {
        display: none;
    }

    .week-section.active {
        display: block;
    }