:root {
    --color-primary: #ffb300;
    --color-secondary: #0c2c84;
    --color-tertiary: #0768ac;

    --color-info: #2563eb;
    --color-success: #16a34a;
    --color-danger: #dc2626;
}
/* General */
/* --------------------------------------------------------------------- */
body {
    position: relative;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
span.error {
    color: var(--color-danger);
    font-size: .75rem;
}

.container {
    margin-left: auto;
    margin-right: auto;
}
body > main {
    min-height: calc(100vh - 337px);
}
.link {
    color: #2563eb;
    transition: .15s;
}
.link:hover {
    color: #1d4ed8;
}
button:disabled,
.disabled {
    opacity: .5;
    pointer-events: none;
}
input[type="number"]:disabled::-webkit-outer-spin-button,
input[type="number"]:disabled::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"]:disabled {
    -moz-appearance: textfield;
}

/* Borders */
/* --------------------------------------------------------------------- */
.border-l {
    border-left-width: 1px;
}

/* Colores */
/* --------------------------------------------------------------------- */
.group:hover .group-hover\:text-secondary,
.hover\:text-secondary:hover,
.text-secondary {
    color: var(--color-secondary);
}
/* Background */
/* --------------------------------------------------------------------- */
.group:hover .group-hover\:bg-secondary,
.bg-secondary {
    background-color: var(--color-secondary);
}

/* Width */
/* --------------------------------------------------------------------- */
.min-w-48 {
    min-width: 12rem;
}

/* Table livewire */
/* --------------------------------------------------------------------- */
.table-livewire nav[role="navigation"] span[aria-disabled="true"] {
    opacity: .5;
}

/* Notificación */
/* --------------------------------------------------------------------- */
.notificacion-banner{
    position: fixed;
    z-index: 999999999;
    left: 0;
    right: 0;
    width: 400px;
}
.notificacion-banner > div{
    border-radius: 12px;
    padding: 20px 10px;
}
.notificacion-banner > div[data-type="info"]{
    background-color: var(--color-info);
}
.notificacion-banner > div[data-type="success"]{
    background-color: var(--color-success);
}
.notificacion-banner > div[data-type="error"]{
    background-color: var(--color-danger);
}
.notificacion-banner .button-close{
    position: absolute;
    right: 10px;
    top: 10px;
}
.notificacion-banner .button-close svg{
    width: 20px;
    height: 20px;
}
.notificacion-banner .content{
    padding-right: 30px;
}
.notificacion-banner .title{
    font-weight: bold;
}
.notificacion-banner .description{
    font-size: 14px;
    line-height: 20px;
    color: #F1F5F9;
}
.slideUp{
    opacity: 0;
    transform: translateY(-50px);
    animation: slideUp .5s forwards;
}
.slideDown{
    animation: slideDown .5s forwards;
}
@keyframes slideUp{
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes slideDown{
    100%{
        transform: translateY(-50px);
        opacity: 0
    }
}

/* Modales */
/* --------------------------------------------------------------------- */
.modal .actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

/* Alert */
/* --------------------------------------------------------------------- */
.alert-danger{
    border-color: #f87171;
    background-color: #fef2f2;
}
.alert-danger .icon{
    color: #f87171;
}
.alert-danger .title{
    color: #991b1b;
}
.alert-danger .content{
    color: #b91c1c;
}

.alert-info{
    border-color: #60a5fa;
    background-color: #eff6ff;
}
.alert-info .icon{
    color: #1e40af;
}
.alert-info .title{
    color: #1e40af;
}
.alert-info .content{
    color: #1d4ed8;
}

.alert-success{
    border-color: #4ade80;
    background-color: #f0fdf4;
}
.alert-success .icon{
    color: #4ade80;
}
.alert-success .title{
    color: #166534;
}
.alert-success .content{
    color: #15803d;
}

/* Tom Select */
/* --------------------------------------------------------------------- */
.tom-select[multiple] {
    height: 42px;
}
.ts-control {
    padding: 8px 12px !important;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    border-color: rgb(203, 213, 225);
    border-radius: 0.375rem;
    min-height: 42px;
}
.ts-control > input {
    font-size: 1rem;
}
.ts-wrapper.loading .create {
    display: none;
}
.ts-wrapper.multi .ts-control > div {
    background: var(--color-secondary);
    color: white;
    border-radius: 6px;
}
.ts-wrapper.single .ts-control .item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

/* Calendar */
/* --------------------------------------------------------------------- */
#calendar .day {
    color: #0f172a;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: auto;
    cursor: pointer;
    position: relative;
}
#calendar .day:hover {
    background-color: #f1f5f9;
}
#calendar .day.day-other-month {
    color: #d1d5db;
}
#calendar .day.day-today {
    background-color: var(--color-secondary);
    color: #ffffff;
}
#calendar .day.day-event {
    background-color: var(--color-primary);
    color: #ffffff;
}
#calendar .day-details {
    position: absolute;
    z-index: 20;
    background-color: #ffffff;
    border-radius: .375rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
#calendar .day-details .day-details-header {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    background-color: #f8fafc;
    padding: .75rem;
    border-radius: .375rem .375rem 0 0;
    border-bottom: 1px solid #e5e7eb;
}
#calendar .day-details .day-details-header .day-details-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
#calendar .day-details .day-details-header .day-details-title:first-letter {
    text-transform: capitalize;
}
#calendar .day-details .day-details-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem;
}
#calendar .day-details .day-details-content .day-details-item {
    padding: .5rem;
    border-radius: .375rem;
    cursor: pointer;
}
#calendar .day-details .day-details-content .day-details-item:hover {
    background-color: #f1f5f9;
}
#calendar .day-details .day-details-content .day-details-item > *:first-child {
    font-weight: 600;
}

/* Editor.js */
/* --------------------------------------------------------------------- */
.editorjs {
    padding: 1rem 3rem;
}
.codex-editor .ce-toolbar__content,
.codex-editor .ce-block__content {
    max-width: inherit !important;
}

/* Dropdown */
/* --------------------------------------------------------------------- */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 12px rgba(0,0,0,.1);
    border: none;
    min-width: 320px;
    max-width: 320px;
    max-height: 320px;
    overflow: auto;
    background-color: #ffffff;
    z-index: 999;
}
.dropdown-menu:not(.show) {
    display: none;
}
