﻿body {
}

.text-tiny {
    font-size: 0.7rem !important;
}

mt-1 {
    margin-top: 1rem !important;
}

mt-2 {
    margin-top: 2rem !important;
}

.w-100 {
    width: 100% !important;
}

.text-small {
    font-size: 0.8rem !important;
}

.text-bold {
    font-weight: bold !important;
}

.text-center {
    text-align: center !important;
}

.text-last-center {
    text-align-last: center;
}

.text-last-left {
    text-align-last: left;
}

.text-error {
    color: red;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.vertical-align-middle {
    vertical-align: middle;
}

.flex-direction-column {
    flex-direction: column !important;
}

.justify-content-evenly {
    justify-content: space-evenly !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-space-between {
    justify-content: space-between !important;
}

.d-flex {
    display: flex !important;
}

.d-none {
    display: none !important;
}

.img-circle {
    border-radius: 50%;
}

.z-10 {
    z-index: 10;
}

.z-1 {
    z-index: 1;
}

.position-relative {
    position: relative;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) * -.5);
    margin-left: calc(var(--bs-gutter-x) * -.5);
}

.flex-row-reverse {
    flex-direction: row-reverse !important;
}

.col-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
}

.col-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
}


.myBorderedTable {
    text-align: center;
    border-collapse: collapse !important;
}

.bg-danger {
    background-color: #f36774 !important;
}

.bg-success {
    background-color: #8ee68e !important;
}

.myBorderedTable tr:nth-child(odd) {
    background-color: #eeeeee;
}


.myBorderedTable th {
    border: 1px solid #000 !important;
    padding: 5px !important;
}

.font-bold {
    font-weight: bold !important;
}

.myBorderedTable td {
    border: 1px solid #000 !important;
    padding: 5px !important;
    width: 35px !important;
}

.weekDayNames {
    text-align: center;
    width: 200px !important;
}

.personName {
    text-align: start !important;
    width: 200px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.threeDotText {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.temp-highlight {
    background-color: yellow;
    transition: background-color 1s ease-out;
}

/*Printing table*/
@media print {
    .text-last-center {
        text-align: center;
    }

    .text-last-left {
        text-align: left;
    }

    .mud-simple-table {
        width: 100%;
        overflow: visible !important;
        display: block !important;
    }

    /* Remove unnecessary elements during print */
    .no-print {
        display: none;
    }

    .mud-menu {
        display: none;
    }

    button > .filter-button .mud-icon-button-label {
        display: none;
    }

    .mud-tooltip-root {
        display: none;
    }

    .column-options {
        display: none;
    }

    .mud-table-pagination-actions {
        display: none;
    }

    .no-break {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}




.activeNavGroup {
    box-shadow: 0 0 15px rgba(81, 203, 238, 1);
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
    border: 1px solid rgba(81, 203, 238, 1);
    border-right: 0;
    border-left: 0;
}

.w-50 {
    width: 50% !important;
}


.align-items-center {
    align-items: center !important;
}



.typing-animation {
    display: inline-block;
}

.dotMessage {
    animation: blinkMessage 1.4s infinite;
}

    .dotMessage:nth-child(1) {
        animation-delay: 0.2s;
    }

    .dotMessage:nth-child(2) {
        animation-delay: 0.4s;
    }

    .dotMessage:nth-child(3) {
        animation-delay: 0.6s;
    }


@media print {
    .no-print {
        display: none !important;
        visibility: collapse !important;
    }

    .with-100-print {
        width: 100% !important;
    }

    .d-print-only {
        display: block !important;
        visibility: visible !important;
    }

    .d-print-none {
        display: none !important;
        visibility: collapse !important;
        height: 0px !important;
    }

    .mud-tooltip-root {
        display: none !important;
        visibility: collapse !important;
    }

    .mud-rtl-provider {
        margin-top: -17px !important;
    }

    .mud-main-content {
        padding-top: 0px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
    }

    .mud-container {
        /*background-color: transparent !important;*/
        padding: 0px !important;
        box-shadow: none !important;
    }

    .mud-drawer {
        box-shadow: none !important;
    }

    .theme-button {
        box-shadow: none !important;
        display: none !important;
    }

    .pagebreak {
        page-break-before: always;
    }

    .page-break {
        page-break-before: always;
    }
    /* page-break-after works, as well */
}


@keyframes blinkMessage {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes typingAnimation {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.highlight-message {
    position: relative;
    z-index: 5;
    animation: highlight-pulse 2s ease-in-out;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .chat-content-body.with-search .chat-messages-area {
        display: none;
    }

    .chat-search-area {
        width: 100%;
    }
}







@keyframes highlight-pulse {
    0% {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.1);
    }

    50% {
        background-color: rgba(var(--mud-palette-primary-rgb), 0.3);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}






/*MarkStudentShowPage*/
/* Reduce space between elements on mobile */
@media (max-width: 599px) {
    .mud-card-content {
        padding: 8px;
    }
}

/* Mobile optimizations */
@media (max-width: 599px) {
    .marks-table .mud-table-cell {
        padding: 8px 4px;
    }
}
