* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Thai';
}

html {
    font-size: 0.87rem;
    -webkit-text-size-adjust: 100%;
}

/* Sidebar */
.nav-item {
    display: flex;
    align-items: center;
    color: #475569;
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
    transition-duration: 200ms;
    cursor: pointer;
}

.nav-item.ring-1 {
    color: #4338ca;
    background-color: #eef2ff;
    --tw-ring-color: #e0e7ff;
}

.nav-item:not(.ring-1):hover {
    color: #0f172a;
    background-color: #f8fafc;
}

.nav-item .icon {
    transition-duration: 200ms;
    width: 2rem;
    text-align: center;
    font-size: 1.75rem;
    margin-right: 1rem;
}

.nav-item .sub-txt {
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 70%;
}

/* Content */
.page-view {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100%;
    padding: 2.5rem;
    max-width: 100%;
    width: 82rem;
    margin: auto;
}

/* Sound wave */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 2rem;
}

.bar {
    width: 4px;
    background-color: #f43f5e;
    border-radius: 9999px;
    height: 8px;
    animation: wave 0.8s ease-in-out infinite;
}

/* Meeting */
.session-group {
    background-color: #f8fafc80;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
}

.session-group .label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    padding-left: 0.25rem;
}

.session-count {
    color: #334155;
    background: #d9e3ed;
    padding: 0.2rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.md-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    padding-left: 0.2rem;
    line-height: 2rem;
}

.upload-file-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.upload-file-text:not(.alert) {
    color: #4f46e5;
}

.upload-file-text.alert {
    color: #dc2626
}


/* Input */
.input-1 {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    color: #0f172a;
    background-color: #ffffff;
}

.input-1:focus {
    box-shadow: 0 0 0 0.14rem #6366f1bd;
}

input,
select,
textarea {
    outline: none;
}

/* Button */
.button-1 {
    color: #ffffff;
    padding: 0.55rem 1.5rem;
    font-weight: 500;
    border-radius: 0.6rem;
    background-color: rgb(77, 68, 225);
    box-shadow: 0 1px 2px 0 #c7d2fe;
}

.button-2 {
    color: #475569;
    padding: 0.45rem 1.65rem;
    font-weight: 500;
    border-radius: 0.6rem;
    background-color: #e6ecf3;
    box-shadow: 0 1px 2px 0 #c1cdda;
}

.button-3 {
    color: #4f46e5;
    font-size: 0.9rem;
    padding: 0.5rem;
    font-weight: 500;
}

button:hover {
    filter: saturate(0.8);
}


/* Modal */
.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 50;
    inset: 0;
    background-color: #00000080;
    backdrop-filter: blur(4px);
}

.modal-bg {
    display: flex;
    flex-direction: column;
    max-width: 95%;
    max-height: 95%;
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc80;
    flex-shrink: 0;
}

.modal-header .title {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.125rem;
}

.modal-footer {
    display: flex;
    justify-content: end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background-color: #f8fafc80;
    flex-shrink: 0;
}



@keyframes wave {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 24px;
    }
}

.bar:nth-child(1) {
    animation-delay: 0.0s;
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}


@media (min-width: 1800px) {
    html {
        font-size: 1rem;
    }
}

@media (max-width: 1360px) {
    html {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .page-view {
        padding: 1rem;
    }
}

@media (max-width: 320px) {
    html {
        font-size: 0.75rem;
    }
}