/******************************** New Classes for Vishweshwar ******************************/

:root {
    --body-background-color: #fff7f2;
    --logo-image: url('../../images/sjsb-header-title.png');
    --primary-color: #7e262d;
    --secondary-color: #fff3eb;
    --secondary-color-stroke: #f58634;
    --accent-color: #f58634;
}

/*spacing*/
html, body {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: 100%;
    width: 100%;
}
/* Set the scrollbar */
::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.pad-2 {
    padding: 0.5rem;
}

.pad-3 {
    padding: 1rem;
}

.pad-4 {
    padding: 1.5rem;
}

.mar-0 {
    margin: 0
}

.mar-1 {
    margin: 0.25rem;
}

.mar-2 {
    margin: 0.5rem;
}

.mar-3 {
    margin: 1rem;
}

.mar-4 {
    margin: 1.5rem;
}

/*******Login page********/

/*Header*/
.image-container {
    --height: 86px;
    width: 100%;
    height: var(--height);
    overflow: hidden;
    position: relative;
}

    .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left;
    }

/*Body*/
.login_form {
    max-width: 330px;
    backdrop-filter: blur(80px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 2px;
    border: 8px solid var(--accent-color);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Tejas Sonawane | 05-Jun-2026 | OTP / login form: wider card, full-width inputs, compact buttons, OTP hints. */
.login_form.login_form--wide {
    max-width: 440px;
    width: 100%;
    align-items: stretch;
}

    .login_form.login_form--wide .message {
        align-self: center;
    }

    .login_form.login_form--wide form,
    .login_form.login_form--wide .login-wrap,
    .login_form.login_form--wide .otp-verify-form,
    .login_form.login_form--wide .otp-resend-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .login_form.login_form--wide .form-control,
    .login_form.login_form--wide .otp-email-input,
    .login_form.login_form--wide input[type=email],
    .login_form.login_form--wide input[type=text] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
        display: block;
    }

    .login_form .checkbox {
        margin-bottom: 14px;
        color: #777;
        font-weight: 300;
    }

    .login_form .form-control {
        position: relative;
        font-size: 16px;
        height: auto;
        padding: 10px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        width: 100%;
    }

        .login_form .form-control:focus {
            z-index: 2;
        }

    .login_form input[type=text], .login_form input[type=password] {
        margin-bottom: 15px;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        border: 1px solid #d7d7d7;
        box-shadow: none;
        font-size: 14px;
        color: #2b2b2b;
        width: 100%;
        min-width: 0;
        display: block;
    }

    .login_form input[type=text]::placeholder,
    .login_form input[type=password]::placeholder {
        color: #8c8c8c;
    }

    .login_form input[type=text]:focus,
    .login_form input[type=password]:focus {
        border-color: #f58634;
        box-shadow: 0 0 0 2px rgba(245, 134, 52, 0.2);
        outline: none;
    }

    .login_form .btn-login {
        background: var(--primary-color);
        color: #fff;
        font-weight: 500;
        box-shadow: none;
        width: 100%;
        border: 1px solid var(--primary-color);
    }

    .login_form .btn-login:hover,
    .login_form .btn-login:focus {
        background: #5f1d22;
        border-color: #5f1d22;
        color: #fff;
    }

    .login_form .btn-login--sm {
        padding: 8px 12px;
        font-size: 14px;
        line-height: 1.35;
        min-height: auto;
    }

    .login_form .otp-resend-btn {
        margin-top: 12px;
    }

    .login_form .message {
        color: #4d0400 !important;
        background-color: #fff3eb;
        border: 1px solid #f4d1bb;
        box-shadow: none;
        width: 80%;
        margin: 16px auto 10px;
        padding: 12px;
    }

    .login_form .login-wrap {
        background: transparent;
        width: 100%;
        margin-top: 10px !important;
        padding: 0 16px 16px;
        box-sizing: border-box;
    }

    .login_form #StatusText {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 8px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .login_form #StatusText .alert {
        width: 100%;
        margin: 0;
        padding: 6px 10px;
        font-size: 12px;
        text-align: center;
        color: #a94442;
    }

    .login_form #StatusText ul {
        margin: 0;
        padding-left: 16px;
        text-align: left;
    }

    .login_form .checkbox a {
        color: #7e262d !important;
        font-weight: 600;
    }

    .login_form input[type=email] {
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #d7d7d7;
        font-size: 14px;
        color: #2b2b2b;
        width: 100%;
        display: block;
        box-sizing: border-box;
    }

    .login_form .form-hint {
        width: 100%;
        margin: 0 0 12px;
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .login_form .form-hint--success {
        color: #2d6a32;
        background: #e8f5e9;
        border: 1px solid #b7dfb9;
    }

    .login_form .form-hint--error {
        color: #a94442;
        background: #f2dede;
        border: 1px solid #ebccd1;
    }

    .login_form .field-validation-error {
        display: block;
        color: #a94442;
        font-size: 12px;
        margin: -8px 0 10px;
        text-align: center;
    }

    .login_form .login-status {
        width: 100%;
        padding: 0 16px;
        margin: 0 0 4px;
        box-sizing: border-box;
    }

    .login_form .login-status .alert {
        margin: 0;
        padding: 6px 10px;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }

    .login_form .login-status ul {
        margin: 0;
        padding-left: 16px;
        text-align: left;
    }

.indigo > .container {
    position: relative;
    top: 20%;
    height: 100%;
}

.message {
    width: 80%;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    padding: 12px;
    margin: 20px auto 0;
    background-color: rgba(255, 255, 255, .2);
    border-left: none;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    color: #fff;
}

.header-logo-txt {
    color: #4d0400;
    font-size: 28px;
    font-weight: bold;
    padding: 0 !important;
    margin: 0 !important;
    float: unset;
}

.login-page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.alert-block ul {
    padding-left: 0px;
    margin-bottom: 0;
}

@media (min-width:1200px) {
    .indigo > .container {
        top: 15%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .indigo > .container {
        top: 10%;
    }

    .login-page-content .login_form {
        max-width: 480px;
        width: 100%;
    }

    /* Tejas Sonawane | 05-Jun-2026 | Tablet width for OTP email field. */
    .login-page-content .login_form.login_form--wide {
        max-width: 520px;
    }

    .login_form .message {
        width: 85%;
        margin-bottom: 12px;
    }

    .login_form .login-wrap {
        margin-top: 12px !important;
        padding: 0 20px 18px;
    }

    .header-logo-txt {
        font-size: 22px;
        padding: 0 12px !important;
    }
}

@media (max-width: 767px) {
    .indigo > .container {
        top: 5%;
    }

    .login-page-content {
        padding: 0 12px;
    }

    .login_form .message {
        width: 90%;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .login_form .login-wrap {
        margin-top: 10px !important;
    }

    .header-logo-txt {
        font-size: 18px;
    }
}


/********************************************* Meeting page *************************************************/


#container {
    background: var(--body-background-color);
    height: 100%;
    max-height: 100vh;
    overflow: auto;
}

/*Header*/
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 16px;
}

/*Body*/
.meeting-date {
    position: absolute;
    padding-left: 1rem;
    top: -15px;
}

    .meeting-date > h4 {
        color: white;
        background: var(--primary-color);
        padding: 6px;
        font-size: 16px;
        border-radius: 4px;
    }

.datewise-meeting-block {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid var(--secondary-color-stroke);
    box-shadow: 0 2px 8px rgba(126, 38, 45, 0.08);
}

.meeting-link-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid rgba(126, 38, 45, 0.25);
    padding: 10px 0;
}

    .meeting-link-div p {
        margin-bottom: 0;
        font-size: 15px;
        font-weight: 500;
    }

    .meeting-link-div:last-of-type {
        border-bottom: none;
    }

    .meeting-link-div > .meeting-title {
        color: #48070b;
        flex: 0 0 85%;
    }

    .meeting-link-div > .meeting-location-confLink {
        flex: 0 0 8%;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .meeting-link-div > #viewMOM {
        flex: 0 0 7%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .meeting-link-div > .link-icon-wrapper {
        -webkit-transition: all 200ms ease-in;
        -webkit-transform: scale(1.1);
        -ms-transition: all 200ms ease-in;
        -ms-transform: scale(1.1);
        -moz-transition: all 200ms ease-in;
        -moz-transform: scale(1.1);
        transition: all 200ms ease-in;
        transform: scale(1.1);
    }

.header-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    background: var(--primary-color);
    color: #fff;
}

.header-content-wrapper .dropdown-toggle,
.header-content-wrapper .dropdown-menu .dropdown-item {
    color: #fff;
}

.header-content-wrapper .dropdown-menu {
    background: #5f1d22;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-content-wrapper .dropdown-item:hover {
    background: var(--accent-color);
}

.form-floating > label {
    height: fit-content;
    width: fit-content;
    top: -5px;
    left: 5px;
    padding: 0;
    background-color: white;
}
/**************************************************** Document Details Page****************************************************************/
.sidebar {
    height: calc(100vh - 40px);
    transition: width 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

    .sidebar.collapsed {
        width: 80px;
    }

    .sidebar.expanded {
        width: 26vw;
    }


    .sidebar .nav-link {
        display: flex;
        gap: 15px;
        padding: 2px 16px;
    }

        .sidebar .nav-link .title {
            display: none;
        }

    .sidebar .document-to-view {
        display: none;
    }

    .sidebar.expanded .nav-link .title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
        font-size: 11px;
        font-weight: bold;
        padding:2px 0;
    }

    .sidebar.expanded .document-to-view {
        display: flex;
        justify-content: space-between;
        padding: 10px 16px;
    }

        .sidebar.expanded .document-to-view a {
            padding: 0;
        }


.submenu {
    padding-left: 32px;
}

.collapse.show {
    display: block;
}

.topic-list-group {
    list-style-type: none;
    padding-left: 0;
}

#rightActionBar {
    position: relative;
    width: 52px;
    flex-shrink: 0;
    z-index: 20;
    align-self: stretch;
    background-color: var(--body-background-color);
    border-left: 1px solid rgba(126, 38, 45, 0.12);
}

.action-bar-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 4px;
    height: 100%;
    position: sticky;
    top: 0;
}

.action-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.action-bar-btn {
    font-size: 30px;
    line-height: 1;
    color: var(--primary-color);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

    .action-bar-btn:hover {
        background-color: rgba(126, 38, 45, 0.08);
        transform: scale(1.05);
    }

.add-comment-btn {
    transform: scaleX(-1);
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.card {
    margin-bottom: 5px;
}

.btnSaveCommit {
    display: flex;
    justify-content: end;
}

.sidebar .bi-x-lg {
    display: none;
}

.sidebar.expanded .bi-x-lg {
    display: block;
}

.sidebar.expanded .bi-indent {
    display: none;
}

.sidebar .bi-indent {
    display: block;
    font-size: 25px;
}

#toggle-btn {
    display: flex;
    cursor: pointer;
    justify-content: end;
}

.sidebar.expanded #logout-btn {
    flex-direction: row;
    gap: 15px;
    margin-top: auto;
    justify-content: end;
}

#logout-btn {
    gap: 0;
    margin-top: auto;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: end;
}

    #logout-btn > .bi-box-arrow-right {
        font-size: 25px;
    }

    #logout-btn > p {
        font-size: 16px;
        text-transform: capitalize;
    }

#pdf-presentation-mode-div {
    flex: 1 1 auto;
    min-width: 0;
}

#container-main {
    height: 100vh;
    width: 100vw;
    background-color: var(--body-background-color);
    overflow-y: auto;
}

#attendeesSideBar,
#momSideBar,
#commentSideBar {
    position: relative;
}

.offcanvas-body {
    overflow: auto;
    height: 100%;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
}

#momSideBar .form-floating {
    margin-top: 15px;
}

#alert_container {
    position: absolute;
    top: 5px;
    right:5px;
}

.alert {
    width: 35vw;
    z-index: 1056;
}

.site-footer {
    background: var(--primary-color);
    color: #fff;
    border-top: 2px solid var(--accent-color);
}

/* Document Details — tablet / iPad */
@media (min-width: 768px) and (max-width: 1199px) {
    #rightActionBar {
        width: 46px;
    }

    .action-bar-icons {
        gap: 8px;
        padding: 12px 3px;
    }

    .action-bar-btn {
        font-size: 26px;
        padding: 5px;
    }

    #iframeForPdfViwer {
        height: 92% !important;
    }

    .sidebar.collapsed {
        width: 72px;
    }
}

@media (max-width: 767px) {
    #rightActionBar {
        width: 40px;
    }

    .action-bar-icons {
        gap: 6px;
        padding: 10px 2px;
    }

    .action-bar-btn {
        font-size: 22px;
        padding: 4px;
    }

    #iframeForPdfViwer {
        height: 88% !important;
    }
}

/* Session idle warning popup */
#sessionIdleOverlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(45, 15, 18, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#sessionIdleOverlay.is-visible {
    opacity: 1;
    visibility: visible;
}

#sessionIdleOverlay .session-idle-box {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 4px;
    border: 4px solid var(--accent-color);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

#sessionIdleOverlay.is-visible .session-idle-box {
    transform: translateY(0) scale(1);
}

#sessionIdleOverlay .session-idle-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5f1d22 100%);
    color: #fff;
}

#sessionIdleOverlay .session-idle-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

#sessionIdleOverlay .session-idle-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

#sessionIdleOverlay .session-idle-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

#sessionIdleOverlay .session-idle-body {
    padding: 1.25rem;
    background: var(--secondary-color);
    color: #4d0400;
    font-size: 0.95rem;
    line-height: 1.55;
}

#sessionIdleOverlay .session-idle-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    margin: 0 0.2rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

#sessionIdleOverlay .session-idle-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
}

#sessionIdleOverlay .session-idle-btn {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 1.25rem;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#sessionIdleOverlay .session-idle-btn:hover,
#sessionIdleOverlay .session-idle-btn:focus {
    background: #5f1d22;
    border-color: #5f1d22;
    outline: none;
}

#sessionIdleOverlay .session-idle-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

@media (min-width: 576px) {
    #sessionIdleOverlay .session-idle-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #sessionIdleOverlay .session-idle-btn {
        width: auto;
        min-width: 160px;
    }

    #sessionIdleOverlay .session-idle-hint {
        text-align: left;
        flex: 1;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    #sessionIdleOverlay {
        padding: 1.5rem;
    }

    #sessionIdleOverlay .session-idle-box {
        max-width: 480px;
    }

    #sessionIdleOverlay .session-idle-body {
        font-size: 1rem;
        padding: 1.35rem 1.5rem;
    }

    #sessionIdleOverlay .session-idle-btn {
        min-height: 46px;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    #sessionIdleOverlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    #sessionIdleOverlay .session-idle-box {
        max-width: none;
        border-width: 3px;
    }

    #sessionIdleOverlay .session-idle-header {
        padding: 0.875rem 1rem;
    }

    #sessionIdleOverlay .session-idle-icon {
        width: 40px;
        height: 40px;
        line-height: 36px;
        font-size: 1.2rem;
    }

    #sessionIdleOverlay .session-idle-title {
        font-size: 1.05rem;
    }
}

/* Fix header white space on iPad mini and smaller screens */
@media (max-width: 768px) {
    .header {
        left: 0 !important;
        right: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}
