/* styling the webpage by css */
/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

/* styling the body */
body {
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* main styling begins */
/* first div real */
.real {
    background-color: #fff;
    color: #b3abab;
    text-align: center;
    padding-bottom: 1rem;
    height: 3rem;
}

/* subdiv container */
.container {
    display: flex;
    background: #eee;
    height: 100%;
    align-items: center;
    justify-items: start;
    background-color: rgb(224, 221, 221);
    padding: 10px;
}

/* styling the header div container1 */
.container1 {
    background-color: #fff;
    color: #2b4598;
    min-height: 120px;
    width: 100%;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(43, 69, 152, 0.05);
    align-items: center;
}

/* subdive row1 */
.row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto;
    padding: 10px 0;
    height: 100%;
}

/* styling the site header1 of the subdiv */
.site_header_1 {
    height: 100px;
    width: 100px;
}

/* styling the site header2 of the subdiv */
.site_header_2 {
    height: 100px;
    width: 100px;
}

/* styling the site header3 of the subdiv */
.site_header_3 {
    text-align: center;
    margin-bottom: 20px;
}

/* lines of the site header3 */
/* styling the h6 */
h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #424040;
    margin-bottom: 8px;
}

/* styling the h2 */
h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

/* span of the site header3 */
/* styling the span */
span {
    font-size: 0.875rem;
    color: #545658;
}

/* styling the site header4 of the subdiv */
.site_header_4 {
    text-align: center;
    margin-bottom: 20px;
}

/* styling  all the photos of the subdiv row1 */
.photo {
    height: 100%;
    width: 100%;
    object-fit: contain;
    margin-top: 2px;
}

/* styling the navbar */
.navbar {
    background-color: #2b4598;
    color: #fff;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 9;
    box-shadow: 0 2px 6px rgba(43, 69, 152, 0.06);
}

/* styling the ul */
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* styling the li */
.navbar li {
    display: inline-block;
}

/* styling the a */
.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 7px 18px;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

/* Only the active page uses the yellow text and dark background */
.navbar a.active {
    background-color: #2152c5;
    color: #01fd33;
}

/* Hover uses a lighter background, but NOT the yellow text */
.navbar a:hover:not(.active) {
    background-color: #4caced;
    color: #fff;
}

/* styling the language dropdown */
/* styling div language-dropdown */
.language-dropdown {
    display: flex;
    align-items: center;
    margin-right: 18px;
    font-size: 15px;
    font-weight: 500;
}

/* styling the  language label */
.language-dropdown label {
    color: #fff;
    margin-right: 8px;
    font-weight: 600;
}

/* styling the language select */
#languageSelect {
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    font-size: 15px;
    background: #f9f9f9;
    color: #052aa6;
    outline: none;
    transition: border 0.2s;
}

/* when the language select is focused */
#languageSelect:focus {
    border-color: #2b4598;
}

/* styling the main container of the webpage */
/* Main container  */
.container_page_layout {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    background: transparent;
    width: 100%;
    max-width: 1400px;
    /* Larger for more content width */
    margin: 28px 0 0 28px;
    /* Slightly more right */
    gap: 32px;
    /* Slightly more gap */
    position: relative;
}

/* styling the sidebar */
/* styling the video list */
.video-list {
    width: 320px;
    min-width: 200px;
    max-width: 400px;
    background: #fff;
    padding: 24px 18px;
    border-right: 1.5px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(31, 54, 80, 0.06);
    overflow-y: auto;
    max-height: 75vh;
    transition: box-shadow 0.2s;
}

/* styling the h2  */
.video-list h2 {
    margin-bottom: 12px;
    color: #2b4598;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
}

/* styling the ul */
.video-list ul {
    list-style: none;
}

/* styling the li */
.video-list li {
    margin-bottom: 7px;
}

/* styling the a */
.video-list a {
    color: #444;
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/*  */
.video-list a:hover,
.video-list a:focus {
    background-color: #eaf1ff;
    color: #1e3a8a;
    outline: none;
}


/* styling the main content of videos */
/* styling the main contentdiv */
.main-content {
    flex: 1;
    padding: 0 0 0 32px;
    /* more right space from sidebar */
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-left: 0;
}

/* styling the video container */
.video-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    background: #27283a;
    box-shadow: 0 2px 12px rgba(43, 69, 152, 0.05);
    padding: 24px 16px 12px 16px;
    position: relative;
}

/* styling the video wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(43, 69, 152, 0.12);
}

/* styling the video element */
#videoElement {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
    border-radius: 8px 8px 0 0;
}

/* styling the video controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0 0 8px 8px;
}

/* styling the play/pause button */
#playPauseBtn {
    background: #f4f4f4;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #2b4598;
    transition: background 0.2s, color 0.2s;
}

#playPauseBtn:hover {
    background: #2b4598;
    color: #fff;
}

/* styling the progress bar */
#progressBar {
    flex: 1;
    height: 5px;
    background: #555;
    cursor: pointer;
    border-radius: 2.5px;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

#progress {
    width: 0;
    height: 100%;
    background: #ffe66d;
    border-radius: 2.5px;
    transition: width 0.2s;
}

/* styling the time display */
.time-display {
    color: #fff;
    font-size: 14px;
    min-width: 70px;
    text-align: right;
}

/* styling the volume control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.volume-control label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

#volumeControl {
    width: 60px;
    accent-color: #2b4598;
    margin-left: 4px;
}

/* Speed control styles */
.speed-control {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

#speedControl {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 4px;
    color: #2b4598;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
}

#speedControl:hover {
    border-color: #2b4598;
}

#speedControl:focus {
    outline: none;
    border-color: #2b4598;
}

/* Transcription & Description Container */
/* styling the transcription container */
.transcription-container {
    max-width: 950px;
    margin: 0 0 0 24px;
    background: #fff;
    padding: 22px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(31, 54, 80, 0.09);
    transition: box-shadow 0.2s;
}

/* styling the transcription header */
.transcription-text,
.description-text {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: #f9f9f9;
    border-radius: 5px;
    line-height: 1.7;
    font-size: 1rem;
    color: #222;
}

.transcription-text {
    border-left: 3px solid #2b4598;
    margin-bottom: 0;
}

.description-text {
    border-left: 3px solid #ffe66d;
    margin-bottom: 0;
}

/* styling the content toggle */
.content-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

/* styling the toggle button */
.toggle-btn {
    padding: 7px 20px;
    border: none;
    background: #2b4598;
    color: white;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.toggle-btn.active,
.toggle-btn:focus {
    background: #2b4598;
    color: #01fd33;
}

.toggle-btn:hover {
    background: #45a049;
    color: #fff;
    opacity: 0.9;
}

/* styling the feedback button */
.toggle-btn.feedback-btn {
    margin-left: auto;
    background: #2b4598;
    color: white;
}

.toggle-btn.feedback-btn:hover {
    background: #45a049;
    opacity: 0.9;
}

.toggle-btn.feedback-btn:active,
.toggle-btn.feedback-btn:focus {
    background: #2b4598;
    color: #01fd33;
}

/* styling the transcription text */
/* styling the description text */
/* styling the content area */
#contentArea {
    width: 100%;
    min-height: 50px;
}

/* styling the content section */
.content-section {
    width: 100%;
    display: none;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.content-section.active {
    display: block;
}

/*  styling the Feedback submission form */
/* styling the feedback section */
.feedback-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* styling the form */
.feedback-section form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* styling the form group */
.feedback-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* styling the form label */
.feedback-section label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

/* styling the form input */
.feedback-section input[type="text"],
.feedback-section input[type="email"],
.feedback-section textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

/* styling the form input focus */
.feedback-section input[type="text"]:focus,
.feedback-section input[type="email"]:focus,
.feedback-section textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
    background-color: #ffffff;
}

/* styling the form textarea */
.feedback-section textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* styling the submit button */
.feedback-section .submit-btn {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 1rem;
}

.feedback-section .submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feedback-section .submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* active class */
/* Add a subtle animation when the form becomes active */
.feedback-section.active {
    animation: fadeIn 0.3s ease-in-out;
}

/* scrollbar */
/* Add focus styles for accessibility */
.feedback-section input:focus-visible,
.feedback-section textarea:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Add placeholder styling */
.feedback-section input::placeholder,
.feedback-section textarea::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Add validation styles */
.feedback-section input:invalid,
.feedback-section textarea:invalid {
    border-color: #dc3545;
}

.feedback-section input:invalid:focus,
.feedback-section textarea:invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Add success state for valid inputs */
.feedback-section input:valid,
.feedback-section textarea:valid {
    border-color: #28a745;
}

.feedback-section input:valid:focus,
.feedback-section textarea:valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* all feedbacks */
.show-feedback-section {
    margin-left: 10%;

}

/* styling the all feedback button */
.button-wrapper {
    background: transparent;
    /* Remove gray background */
    padding: 20px;
    /* Optional spacing */
    text-align: center;
    /* Center the button */
}

.show-feedback-btn {
    background-color: #2b4598;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.show-feedback-btn:hover {
    background-color: #1e357a;
    transform: scale(1.03);
}

/*  styling the Footer  of the webpage */
footer {
    background-color: #2b4598;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: 40px;
}

footer h2 {
    color: #ffffff;
}


/* Debug Information Panel */
#debugInfo {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: rgba(31, 54, 80, 0.96);
    color: #fff;
    padding: 15px 16px;
    border-radius: 8px;
    font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
    z-index: 9999;
    max-width: 340px;
    min-width: 190px;
    box-shadow: 0 0 16px rgba(31, 54, 80, 0.13);
    font-size: 0.94rem;
    user-select: none;
}

#debugInfo h3 {
    margin: 0 0 10px 0;
    color: #00ff00;
    font-size: 1.13rem;
    letter-spacing: 1px;
}

#debugInfo p {
    margin: 5px 0;
    font-size: 0.98em;
    word-break: break-all;
}

#debugInfo span {
    color: #ffe66d;
    font-weight: bold;
}


/* --- Responsive design adjustments --- */
@media (max-width: 1200px) {
    .container_page_layout {
        max-width: 98vw;
        margin-left: 2vw;
        gap: 18px;
    }

    .video-list {
        width: 220px;
        min-width: 140px;
        max-width: 260px;
        padding: 12px 8px;
    }

    .main-content {
        padding-left: 8px;
    }

    .transcription-container {
        max-width: 98vw;
        margin-left: 0;
        padding: 14px 4px;
    }
}

@media (max-width: 1024px) {
    .container_page_layout {
        flex-direction: column;
        gap: 0;
        min-width: 0;
        margin: 10px 0 0 0;
        max-width: 100vw;
    }

    .video-list {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1.5px solid #e6e6e6;
        margin-bottom: 10px;
        box-shadow: none;
        border-radius: 7px;
        max-height: 180px;
        padding: 10px 7px;
    }

    .main-content {
        padding-left: 0;
        gap: 18px;
    }

    .transcription-container {
        max-width: 100vw;
        margin-left: 0;
        padding: 10px 2px;
    }
}

@media (max-width: 768px) {
    .container1 {
        min-height: 60px;
        padding: 0;
    }

    .row1 {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 4px 0;
    }

    .site_header_1,
    .site_header_2,
    .site_header_4 {
        height: 60px;
        width: 60px;
    }

    .site_header_3 h6,
    .site_header_3 h2,
    .site_header_3 span {
        font-size: 0.93rem;
    }

    .container_page_layout {
        flex-direction: column;
        margin: 10px 0 0 0;
        gap: 0;
        width: 100%;
        max-width: 100vw;
    }

    .video-list {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1.5px solid #e6e6e6;
        box-shadow: none;
        border-radius: 6px;
        max-height: 140px;
        padding: 7px 5px;
        font-size: 0.93rem;
    }

    .main-content {
        padding-left: 0;
        gap: 10px;
    }

    .video-container,
    .transcription-container {
        max-width: 99vw;
        padding: 8px;
    }

    #debugInfo {
        max-width: 98vw;
        min-width: 130px;
        font-size: 0.92rem;
        padding: 10px 7px;
        right: 4px;
        bottom: 4px;
    }
}

@media (max-width: 600px) {
    .container1 {
        padding: 0 0 18px 0;
    }

    .row1 {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .site_header_1 {
        margin: 20px auto 0 auto;
        width: 90px;
        height: 90px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site_header_2 {
        margin: 6px auto 0 auto;
        width: 96px;
        height: 96px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site_header_4 {
        display: none !important;
    }

    .photo {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #2252a6;
        display: block;
        background: #fff;
        margin: 0 auto;
    }

    .site_header_2 .photo {
        border-radius: 0;
        border: none;
        width: 96px;
        height: 96px;
        background: transparent;
        box-shadow: none;
    }

    .site_header_3 {
        width: 100%;
        text-align: center;
        margin: 16px 0 0 0;
        background: transparent;
    }

    .site_header_3 h6 {
        font-size: 0.97rem;
        margin-bottom: 8px;
    }

    .site_header_3 h2 {
        font-size: 1.06rem;
        margin-bottom: 10px;
    }

    .site_header_3 span {
        font-size: 0.92rem;
    }

    .video-list {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1.5px solid #e6e6e6;
        box-shadow: none;
        border-radius: 6px;
        max-height: 80px;
        padding: 4px 4px;
        font-size: 0.89rem;
    }

    .main-content {
        padding-left: 0 !important;
        gap: 8px;
    }

    .transcription-container {
        max-width: 100vw;
        margin-left: 0;
        padding: 4px 1vw;
        border-radius: 7px;
    }

    #debugInfo {
        max-width: 99vw;
        min-width: 120px;
        font-size: 0.88rem;
        padding: 8px 4px;
        right: 1vw;
        bottom: 1vw;
    }

    footer {
        padding: 10px 2px 6px 2px;
        font-size: 0.93rem;
        border-radius: 7px 7px 0 0;
    }
}

/* styling of the webpage ends */
/* responsive styling ends */

/* if any changes are made to the webpage add below */

/* Footer Section */
.footer-section {
    position: relative;
    width: 100%;
    margin-top: 60px;
    /* Increased margin to create more space */
}

View All Feedbacks Button .view-feedback-container {
    position: absolute;
    bottom: 100%;
    right: 20px;
    margin-bottom: 30px;
    /* Increased margin to move button down */
    z-index: 1000;
}

.view-feedback-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2b4598;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(43, 69, 152, 0.2);
    transition: all 0.3s ease;
}

.view-feedback-btn:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 69, 152, 0.3);
}

.view-feedback-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(43, 69, 152, 0.2);
}

/* Feedback List Page Styles */
.feedback-list-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6e6e6;
}

.feedback-header h1 {
    color: #2b4598;
    font-size: 28px;
    margin: 0;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2b4598;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.feedback-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feedback-info {
    margin-bottom: 15px;
}

.feedback-info h3 {
    color: #2b4598;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.feedback-metadata {
    color: #666;
    font-size: 14px;
}

.feedback-content {
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
}

.feedback-content p {
    margin: 0;
    white-space: pre-wrap;
}

.feedback-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e6e6e6;
}

.feedback-email {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.no-feedback {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

.no-feedback p {
    margin: 0;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feedback-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .feedback-grid {
        grid-template-columns: 1fr;
    }
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}