@import "switch.css";
@import "indicator.css";
@import "google.css";
@import "colors.css";

html {
    height: 100%;
    margin: 0;
    overflow: auto;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    background: var(--color-main-bg);

    height: 100%;
    margin: 0;
}

/* Flash messages */
.message {
    padding: .5rem 1rem;
    background: var(--color-message-info-bg);
    color: var(--color-message-info-text);
    border-color: var(--color-message-info-border);
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;

    cursor: pointer;

    margin: 1rem 2rem;
}
.message.hidden {
    display: none;
}
.message.success {
    background: var(--color-message-success-bg);
    color: var(--color-message-success-text);
    border-color: var(--color-message-success-border);
}
.message.warning {
    background: var(--color-message-warning-bg);
    color: var(--color-message-warning-text);
    border-color: var(--color-message-warning-border);
}
.message.error {
    background: var(--color-message-error-bg);
    color: var(--color-message-error-text);
    border-color: var(--color-message-error-border);
}

/**/
span.error {
    color: var(--color-message-error-text);
}

/* layout */
#wrapper {
    display: flex;
    width: 100%; /* Ensure full width */
    align-items: stretch;
    min-height: 100vh;
}

@media only screen and (max-width: 800px) {
    #wrapper {
        display: block;
    }
}

.column {
    padding: 0;
    height: 100%;
}

.row div.column {
    background: var(--color-white);
    padding: 1rem 2rem;
    min-height: calc(100vh - 2rem);
}
.content {

}
.content form {
    margin: 0;
}

.row .column {
    min-height: 100vh;
}
@media only screen and (max-width: 800px) {
    .row .column {
        height: 100%;
        min-height: auto;
    }
}

.row .column .content {

}
@media only screen and (max-width: 800px) {
    .row .column .content {
        height: 100%;
    }
}

/* nav */
nav.top-nav {
    box-sizing: border-box;
    width: 150px;
    background-color: var(--color-footer-bg);
    transition: background-color 0.3s ease;
    padding-top: 70px;
    padding-bottom: 70px;

    position: relative;

}

nav.top-nav hr {
    border-style: dotted;
    border-color: gray;
}

nav.top-nav form {
    position: absolute;
    bottom: 20px;
    width: 100%;
    margin: 0;
}

nav.top-nav form select {
    display: block;
    width: 80%;
    margin: 0 auto;
    color: white;
    border-color: var(--color-lightgray);
}
nav.top-nav #hamburger {
    display: none;
}

@media only screen and (max-width: 800px) {
    nav.top-nav {
        width: 100%;
        height: 40px;
        padding: 0;
        margin: 0;
    }
    nav.top-nav * {
        display: none;
    }

    nav.top-nav.visible {
        padding-top: 80px;
        height: 100vh;
    }
    nav.top-nav.visible * {
        display: block;
    }


    nav.top-nav #logo {
        display: initial;
    }

    nav.top-nav #hamburger {
        display: inline-block;
        position: absolute;
        top: 0;
        right: 0;
        height: 40px;
        width: 40px;
        padding: 0;
    }
    nav.top-nav #hamburger img {
        display: inline;
        filter: opacity(80%);
    }
}

/* side nav */
.column:has(.side-nav) {
    width: 170px;
    padding: 0;
    margin-left: 1rem;
}
@media only screen and (max-width: 800px) {
    .column:has(.side-nav) {
        width: 100%;
        margin: 0;
    }

    .side-nav {
        overflow: auto;
        white-space: nowrap;
        margin: 0;
    }
}

/* nav items */
nav.top-nav a,
.side-nav a {
    display: block;
    border-bottom: 1px solid;
    font-size: 12pt;
    font-weight: 200;

    padding: 11px 5px 11px 15px;
}

@media only screen and (max-width: 800px) {
    .side-nav a {
        display: inline-block;
        padding: 10px;
        border-bottom: 0;
        margin: 0;
        border-right: 1px solid var(--color-verylightgray);
    }
}

nav.top-nav a {
    color: white;
    border-color: #38434B;
}
.side-nav a {
    color: var(--color-cakephp-gray);
    border-color: var(--color-verylightgray);
    font-size: 10pt;
}

nav.top-nav a:hover,
nav.top-nav a.selected,
.side-nav a:hover,
.side-nav a.selected {
    color: var(--color-links-active);
    background-color: white;
}

.side-nav a:hover,
.side-nav a.selected {
    text-decoration: underline;
}

nav.top-nav .block a:last-child,
.side-nav a:last-child {
    border-bottom: none;
}

.side-nav h5 {
    margin: 10px 0 0 0;
    padding: 0;
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
}


/* main */

main.main {
    box-sizing: border-box;
    width: calc(100% - 150px); /* Adjust width based on nav width */
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%; /* Full height of the parent container */

    background: var(--color-footer-bg) url('../img/hic_sunt_leones.png') repeat;
}

@media only screen and (max-width: 800px) {
    main.main {
        display: block;
        width: 100%;
    }
}

main.main .container {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    height: 100%; /* Ensure the container takes full height */

    margin: 0;

    background-color: var(--color-main-bg);

    z-index: 1;
}

@media only screen and (max-width: 800px) {
    main.main .container {
        padding: 0;
        display: block;
        min-height: auto;
        height: auto;
    }
}


main.main div#content {
    padding: 10px 20px;
}

main.main .container .row {
    width: calc(100% + 1rem);
}

@media only screen and (max-width: 800px) {
    main.main .container .row {
        width: 100%;
    }
}

/* logo */

#logo {
    position: absolute;
    top: 0;
    left: 10px;
    height: 4rem;
    width: 4rem;
    filter: grayscale(100%) brightness(100%) invert(1);
}
#logo:hover {
    filter: none;
}

/* forms */
input[type="text"],input[type="email"], input[type="password"], textarea {
    background-color: var(--color-input-bg) !important;
}

div.narrow {
    width: 50%;
    min-width: 400px;
    margin: 0 auto;
}
@media only screen and (max-width: 600px) {
    div.narrow {
        width: auto;
        min-width: auto;
    }
}

div.container:has(div.half) {
    display: block;
}

div.half {
    display: inline-block;
    padding: 20px;
    width: calc(50% - 5px);
    vertical-align: top;
}

@media only screen and (max-width: 800px) {
    div.half {
        display: block;
        padding: 10px;
        width: 100%;
    }
}

/* beh */
.float-right {
    float: right;
    text-align: right;
}

/* admin index tables */
.index.content {
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}
.index.content .paginator {
    position: absolute;
    bottom: 0;
    width: calc(100% - 4rem);
    padding-bottom: 5px;
}

.index.content table {
    table-layout: fixed;
}

.index.content .longer {
    white-space: nowrap;
    overflow: auto;
}
.index.content td p.small {
    font-size: 75%;
}


.index.content .count {
    width: 100px;
    text-align: right;
}

.index.content th {
    text-align: left;
}

.index.content .actions {
    width: 150px;
}
.index.content td.actions {
    text-align: left;
}

.schools .name {

}
.schools .web {
    width: 150px;
}

.classrooms .term {
    width: 170px;
}

.hidden {
    display: none !important;
}

/* DEMO */
div#demo {
    color: var(--color-message-info-bg);
    background-color: var(--color-demo);
    text-align: center;
    padding: 5px;


    width: 100%;
}

/* TYPING INDICATOR */
.typing-indicator {
    display: none !important;
    padding: 10px !important;
    align-items: center;
    width: 80px !important;
}

.typing-indicator .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0;
    animation: blink 1.4s infinite both;
}

.typing-indicator .dot:nth-child(1) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.4s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}
#analyzer .typing-indicator {
    display: block !important;
}

/**/
.float-right {
    float: right;
}
.align-right {
    text-align: right;
}
.align-center {
    text-align: center;
}

.slim-header tr th {
    font-size: 9pt;
}

/* inv */
#invitation {
    margin: 20px auto;
    text-align: center;
}
#invitation p {
    margin: 0;
}
#invitation input {
    width: 200px;
}

/* generic summary block */

.summary-block {
    display: inline-block;
    width: 199px;
    padding: 35px 15px 15px 15px;
    border-radius: 20px;
    margin: 0 10px 10px 0;
    vertical-align: top;
    position: relative;

    font-size: 10pt;

    background-color: var(--color-verylightgray);
}

/* classroom summary */


.classroom-summary {
    margin-bottom: 15px;
    padding: 5px;
    border-radius: 5px;

    position: relative;
    font-size: 10pt;

    background-color: var(--color-verylightgray);
}
.classroom-summary h5 {
    margin: 0;
    padding: 0;
    font-weight: bold;
    font-size: 11pt;
}
.classroom-summary .term {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9pt;
}