﻿@font-face {
    font-family: 'AllergenFont';
    src: url('/fonts/allergenFont.ttf') format('truetype');
}

@font-face {
    font-family: 'SignRiyathi';
    src: url('/fonts/SignRiyathi.ttf') format('truetype');
}

@font-face {
    font-family: 'Angelica';
    src: url('/fonts/AngelicaSignatureDemo.otf') format('opentype');
}

html {
    min-height: 100%;
    background-color: #fefbf1;
    background-image: url('/images/minnie%20pastel.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

body {
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, 'Segoe UI Emoji', serif;
    font-size: 1.3rem;
    padding-top: 50px;
    padding-bottom: 20px;
    background-color: transparent;
    min-height: 100vh;
    margin: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar, .jumbotron, .card-header, .modal-title {
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, serif;
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.3rem;
}

h3 {
    font-size: 1.9rem;
}

h4 {
    font-size: 1.7rem;
}

h5 {
    font-size: 1.5rem;
}

h6 {
    font-size: 1.3rem;
}

.jumbotron h1 {
    font-style: italic;
    font-weight: 500;
}

.allergy-f {
    font-family: AllergenFont!important;
}

/* Set padding to keep content from hitting the edges */
.body-bg > .body-content {
    padding: 25px;
    background-color: #f5f5f5BF;
    border-radius: 8px;
}

.body-bg:not(.admin-panel) .body-content .jumbotron {
    background-color: transparent !important;
}

.body-bg:not(.admin-panel) .body-content div,
.body-bg:not(.admin-panel) .body-content span,
.body-bg:not(.admin-panel) .body-content h1,
.body-bg:not(.admin-panel) .body-content h2,
.body-bg:not(.admin-panel) .body-content h3,
.body-bg:not(.admin-panel) .body-content h4,
.body-bg:not(.admin-panel) .body-content h5 {
    text-shadow: 0 0 8px rgba(255,255,255,0.95), 0 0 4px #ffffff;
}

.gc-justify h1,
.gc-justify h2,
.gc-justify h3,
.gc-justify h4,
.gc-justify h5,
.gc-justify h6 {
    text-align: left;
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, serif;
}

.q-jumbotron h1,
.q-card h4 {
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, serif;
}

.gc-justify .col-md-4 span,
.gc-justify .col-md-4 a,
.q-card .alert-light {
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, serif;
}

.gc-elegant {
    font-family: 'Playfair Display', 'Playpen Sans', 'Quicksand', Georgia, serif;
}

.gc-invite-title {
    font-size: 1.8rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .gc-invite-title {
        font-size: 1.4rem;
    }

    .gc-confirma {
        font-size: 1.15rem;
    }

    .gc-countdown {
        font-size: 1.2rem;
    }

    .border-top .row > .col:first-child {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .gc-justify .row > .col-auto.d-flex.align-items-center {
        align-items: flex-end;
        margin-bottom: 0 !important;
    }

    .gc-justify .row > .col-auto.d-flex.align-items-center .m-auto {
        margin: 0 !important;
    }

    .gc-justify .row > .col-auto.d-flex.align-items-center + .col {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .gc-justify .row > .col-auto.d-flex.align-items-center + .col > .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

.body-no-bg {
    background-color: transparent;
    position: relative;
    z-index: 0;
}

.body-no-bg > .body-content {
    padding: 25px;
    background-color: #f5f5f5CC;
    border-radius: 8px;
}

.body-bg {
    background-color: transparent;
    position: relative;
    z-index: 0;
}

.bg-fixed {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/minnie%20pastel.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    z-index: -2;
    pointer-events: none;
}

.body-bg::before,
.body-no-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    z-index: -1;
    pointer-events: none;
}

.main {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .main {
        min-height: calc(100vh - 120px);
    }
}

/*define colors for app*/
:root {
    --primary: #7b834e;
    --primary-light: #a0a581;
    --primary-slight: #d6d9c1;
    --primary-sslight: #f3f5e9;
    --primary-dark: #494f23;
    --secondary: #be9e38;
    --secondary-light: #eedda6;
    --secondary-slight: #fcf7e4;
    --secondary-sslight: #fefbf1;
    --secondary-dark: #a88c32;
    --secondary-sdark: #715d1c;
}

.text-v-center {
    vertical-align: central!important;
}

.text-gc-primary{
    color:var(--primary);
}

.title {
    color: var(--primary-dark);
}

.text-gc-gray{
    color: slategray;
}


.text-gc-primary-dark {
    color: var(--primary-dark);
}

.text-gc-secondary {
    color: var(--secondary);
}

.text-gc-secondary-dark {
    color: var(--secondary-dark);
}

.text-gc-secondary-sdark {
    color: var(--secondary-sdark);
}

.btn-gc {
    background-color: var(--primary);
    color: white;
}

.btn-gc:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-gc-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-gc-secondary:hover {
    background-color: var(--secondary-dark) !important;
    color: white;
}

.btn-gc-secondary-light {
    background-color: var(--secondary-light);
}

.btn-gc-secondary-light:hover {
    background-color: var(--secondary) !important;
}

.btn-gc-secondary-dark {
    background-color: var(--secondary-dark);
    border:none!important;  
    color: white;
}

    .btn-gc-secondary-dark:hover {
        background-color: var(--secondary-sdark) !important;
        color: white;
    }


.btn-default{
    color: var(--primary)!important;
}

.btn-default:hover {
    color: var(--primary-dark)!important;
}

.btn-success {
    background-color: #9aa87f;
    border-color: #9aa87f;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    background-color: #7d8a64 !important;
    border-color: #7d8a64 !important;
}

.btn-danger {
    background-color: #c08d84;
    border-color: #c08d84;
}

.badge-success {
    background-color: #9aa87f;
}

.nav-title-gc {
    font-family: 'Angelica', 'SignRiyathi', 'Playpen Sans', 'Quicksand', Georgia, sans-serif;
    font-size: 6.2rem;
    line-height: 1.2;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-title-login-gc {
    white-space: nowrap;
    font-size: 5.5rem;
    margin-left: 0.3em;
}

.login-date-gc {
    font-family: 'Angelica', 'SignRiyathi', 'Playpen Sans', 'Quicksand', Georgia, sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
    text-align: center;
    color: var(--primary-dark);
}

@media (max-width: 767.98px) {
    .nav-title-gc {
        font-size: 4.2rem;
    }

    .nav-title-login-gc {
        font-size: 4.2rem;
        margin-left: 0.4em;
    }

    .login-date-gc {
        font-size: 1.9rem;
    }
}

.body-content-clear {
    background-color: transparent !important;
}

.card {
    background-color: rgba(255, 255, 255, 0.8);
}

.card-header {
    background-color: rgba(247, 248, 250, 0.8);
}

.jumbotron.bg-light {
    background-color: rgba(248, 249, 250, 0.55) !important;
}

.table-light {
    background-color: rgba(248, 249, 250, 0.55) !important;
}

.alert-info {
    background-color: rgba(209, 236, 241, 0.5);
}

.jumbotron.bg-light.q-jumbotron {
    background-color: rgba(255, 255, 255, 0.45) !important;
}

.q-card,
.q-card .card {
    background-color: rgba(255, 255, 255, 0.45);
}

.q-card .card-header,
.q-card .card-body,
.q-card .card-footer,
.q-card .alert-light {
    background-color: rgba(255, 255, 255, 0.45);
}

.gc-empty-name {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #d6d9c1;
    max-width: 220px;
}

.gc-empty-name:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active {
    background-color: #a4716a !important;
    border-color: #a4716a !important;
}

@media (max-width: 767.98px) {
    .body-content .col-12.mb-4 {
        margin-bottom: 2.5rem !important;
    }
}

@media (min-width: 992px) {
    .nav-gc {
        width: 50% !important;
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.bg-gc {
    background-color: var(--primary);
}

.bg-gc-light {
    background-color: var(--primary-light);
}

.bg-gc-slight {
    background-color: var(--primary-slight);
}

.bg-gc-secondary {
    background-color: var(--secondary-slight);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bg-gc-secondary-dark {
    background-color: var(--secondary-dark);
}

.border-gc{
    border-color: var(--primary)!important;
}
.border-gc-secondary {
    border-color: var(--secondary) !important;
}

.hover{
    cursor: help;
}

.hover:hover{
    background-color: var(--primary-slight)!important;
}

a {
    color: var(--primary)!important;
}

a:hover{
    color: var(--primary-dark)!important;
}

a.text-gc-primary-dark {
    color: var(--primary-dark) !important;
}


/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: #777;
    border-color: #fff
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select {
    max-width: 280px;
}
/*textarea-->estaba inlcuido arriba*/

textarea {
    resize: vertical;
}

input-group {
    margin-bottom: 10px;
}

.i-texto {
    margin-right: 5px;
}

.i-texto-r {
    margin-left: 5px;
}

.i-texto-l {
    margin-right: 5px;
}

thead {
    display: table-header-group
}

tfoot {
    display: table-row-group
}

tr {
    page-break-inside: avoid
}

.thead {
    background-color: var(--primary-slight)!important;
}

th {
    border-bottom: 1px solid var(--primary-light) !important ;
}

table {
    border-bottom: 1px solid var(--primary-light) !important;
}

.modal-header {
    font-weight: bolder
}

.modal-body {
    padding: 10px
}

.boton-grupo {
    margin: 0px
}

.login {
    max-width: 100% !important;
}

.wide {
    max-width: 100% !important;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal-backdrop .fade .in {
    opacity: 0.5 !important;
}


.modal-backdrop.fade {
    opacity: 0.5 !important;
}

.btn-table {
    font-size: small !important;
}

.pagebreak {
    page-break-after: always;
}

.hover-grow:hover {
    transform: scale(1.04);
    border-radius: 5px;
    background-color: var(--primary-sslight) !important;
    box-shadow: #a0a581 2px 2px 11px;
    z-index:300;
}

/*Creación de nuevo tipo de estilo para jquery-confirm*/
.jconfirm .jconfirm-box.jconfirm-type-gc {
    border-top: solid 7px var(--primary) !important;
    -webkit-animation-name: type-gc !important;
    animation-name: type-gc !important;
}

.jconfirm .jconfirm-box.jconfirm-type-gc .jconfirm-title-c {
    color: var(--primary-dark) !important;
}

.jconfirm .jconfirm-box.jconfirm-type-red .jconfirm-title-c {
    color: #e74c3c !important;
}


@-webkit-keyframes type-gc {
    1%,100% {
        border-color: var(--primary)
    }

    50% {
        border-color: var(--primary-dark)
    }
}

@keyframes type-gc {
    1%,100% {
        border-color: var(--primary)
    }

    50% {
        border-color: var(--primary-dark)
    }
}

/* width */
::-webkit-scrollbar {
    width: 3px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--primary-slight);
    border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


@keyframes bang {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

/*Confetti*/
.btnParty span {
    color: #333;
    font-size: 0.9em;
}

.btnParty i {
    position: absolute;
    display: block;
    left: 10%;
    top: 60%;
    width: 3px;
    height: 8px;
    background: red;
    opacity: 0;
}

@media (max-width: 900px) {
    .modal.modal-fullscreen .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        max-width: none;
    }


    .modal.modal-fullscreen .modal-content {
        height: auto;
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .modal.modal-fullscreen .modal-body {
        overflow-y: auto;
    }
}

/*Panel admin: letra más pequeña solo en las tablas para que quepan más columnas*/
body.admin-panel .container.body-content {
    max-width: 1800px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

body.admin-panel .dataTables_wrapper {
    overflow-x: auto;
}

/*Filtros de asistencia/preasistencia: el aplicado es inequívoco (fondo claro + contorno + sombra)*/
.criteria-btn {
    transition: none;
}

.criteria-btn:hover,
.criteria-btn:focus,
.criteria-btn:active {
    box-shadow: none !important;
}

.criteria-btn.active,
.criteria-btn.active:hover,
.criteria-btn.active:focus,
.criteria-btn.active:active {
    background-color: #ffffff !important;
    color: #212529 !important;
    outline: 2px solid #212529;
    outline-offset: 1px;
    font-weight: 800;
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-1px);
}

.criteria-btn.active::before {
    content: "✓ ";
    font-weight: 900;
}

body.admin-panel .dataTable {
    font-size: 1.5rem;
}

body.admin-panel .dataTable thead th {
    font-size: 1.4rem;
    padding: 0.25rem 0.3rem !important;
}

body.admin-panel .dataTable tbody td {
    padding: 0.15rem 0.3rem;
    vertical-align: middle;
}

body.admin-panel .dataTable .form-control {
    font-size: 1.35rem;
    padding: 0.1rem 0.25rem;
    height: auto;
    max-width: 100%;
}

body.admin-panel .dataTable .btn {
    font-size: 1.35rem;
    padding: 0.1rem 0.35rem;
}

/*Columna Nombre más ancha y con salto de línea para apellidos largos*/
body.admin-panel #tablePersons td.name-col {
    white-space: normal;
    min-width: 200px;
}

/*Fila desplegable del plan de fin de semana*/
body.admin-panel .plan-child {
    background-color: #fffdf5;
    border: 1px solid #efe7d0;
}

body.admin-panel .plan-child th {
    width: 130px;
    font-weight: 600;
}

/*Toggles (Enviada, Familia/Amigos, Activa) dentro de las tablas del panel*/
body.admin-panel .dataTable .dt-toggle-btn {
    font-size: 1.05rem;
    line-height: 1.15;
    padding: 0.05rem 0.4rem;
    white-space: nowrap;
}

/* Normalizar tamaño de texto en tablas del panel de admin */
body.admin-panel table.table,
body.admin-panel .dataTables_wrapper,
body.admin-panel .dt-buttons {
    font-size: 1.05rem;
}

body.admin-panel table.table td,
body.admin-panel table.table th {
    font-size: 1.05rem;
    padding: 0.5rem;
}

body.admin-panel table.table input.form-control,
body.admin-panel table.table select.form-control,
body.admin-panel table.table textarea.form-control {
    font-size: 1.05rem;
}

body.admin-panel .dt-buttons button {
    font-size: 1.05rem;
    padding: 0.35rem 0.65rem;
}

body.admin-panel table.table .preass-sel,
body.admin-panel table.table .notes-txt {
    font-size: 1.05rem;
}

body.admin-panel table.table .form-control::placeholder {
    font-size: 1.05rem;
}

/* Menú de navegación vertical en margen izquierdo del panel de admin */
.admin-panel-nav-vertical {
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-right: 2px solid #dee2e6;
    height: calc(100vh - 60px);
    overflow-y: auto;
    width: 70px;
}

.admin-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #212529;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-nav-icon:hover {
    background-color: #e8d9ca;
    border-color: #a4716a;
    color: #a4716a;
    transform: scale(1.1);
}

.admin-nav-icon:active {
    background-color: #d4c4b0;
    border-color: #8b5a52;
}

/* Ajuste del body para el menú lateral cuando está en admin-panel */
body.admin-panel {
    padding-left: 70px;
}

/* Ajuste del navbar para que no sea afectado por el padding */
.navbar-fixed-top {
    left: 0;
    width: 100%;
}

/* Zebra striping - contraste alterno en tablas */
body.admin-panel table.table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 1);
}

body.admin-panel table.table tbody tr:nth-child(even) {
    background-color: rgba(240, 235, 230, 0.8);
}

body.admin-panel table.table tbody tr:hover {
    background-color: rgba(220, 200, 180, 0.4) !important;
    transition: background-color 0.2s ease;
}

/* Filtro de alergias como las etiquetas de la tabla */
.allergy-filter-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-color: #ffffff;
    color: var(--primary-dark);
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.2rem 0.6rem;
    font-size: 1.05rem;
}

.allergy-filter-btn:hover,
.allergy-filter-btn:focus,
.allergy-filter-btn:active {
    box-shadow: none !important;
}

.allergy-filter-btn:hover {
    background-color: #f8f9fa;
    border-color: #a5adb8;
    color: var(--primary-dark);
}

.allergy-filter-btn.active,
.allergy-filter-btn.active:hover,
.allergy-filter-btn.active:focus,
.allergy-filter-btn.active:active {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    outline: 2px solid var(--primary-light);
    outline-offset: 1px;
    font-weight: 700;
    box-shadow: none !important;
    transform: none !important;
}

.allergy-filter-btn .cat-count {
    margin-left: 0.4rem;
    background-color: #f1f3f5;
    border-radius: 0.75rem;
    padding: 0 0.45rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--primary-dark);
}

/* Etiquetas de alergias agrupadas del panel */
body.admin-panel table.table .allergy-badge {
    display: inline-block;
    white-space: nowrap;
    background-color: #ffffff;
    color: var(--primary-dark);
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.15rem 0.5rem;
}

/* Forzar ancho completo en inputs de configuración del panel */
body.admin-panel div.card-body div.form-group textarea.form-control,
body.admin-panel div.card-body div.form-group input.form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 1rem;
}
