/*    WP style    */


.table-calendar {
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.table-calendar td:nth-child(1),
.table-calendar th:nth-child(1){    width:120px;}

.table-calendar td:nth-child(2),
.table-calendar th:nth-child(2){    vertical-align: top;}

.table-calendar td:nth-child(3),
.table-calendar th:nth-child(3){    width:140px; vertical-align: middle;}

 td:last-child {font-family: sans-serif;
    text-align:center; width:180px; vertical-align: middle;}

@media (max-width:768px){
.table-calendar td:nth-child(1),
.table-calendar th:nth-child(1){    width:60px;}

.table-fixed td:nth-child(2),
.table-fixed th:nth-child(2){    width:100px;}

.table-calendar td:nth-child(4),
.table-calendar th:nth-child(4){    width:60px;}
}

table th, table td  {
  padding: 5px 0;
 text-align: left;
    
}

/*   End WP Style   */


#tickets-app {
  font-family: "Segoe UI";
  box-sizing: border-box;
}

#tickets-app *,
#tickets-app *::before,
#tickets-app *::after {
  box-sizing: border-box;
}


body {
    font-family: "Segoe UI", Arial, sans-serif;
    background:#d6dadf; 
    margin:0px;
}
.bilete-new {display:none;}

.page-title {font-size:28px; font-family: Bookman Old Style, serif; font-weight:500;}

html, body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
table { width:70%; max-width:1235px; min-width:320px; margin:0px auto; margin-top:20px;  border-spacing:0px 2px; margin-bottom:120px;}

thead {
    display:none;
}

tr {
    background:#fafafa;
    box-shadow:0 2px 6px rgba(0,0,0,.08);}
tbody{}

tbody tr:hover {
    background-color:#fff;
    box-shadow:0 3px 10px rgba(0,0,0,.15);
    transform:translateY(-1px)translateX(2px);
    outline:1px solid #eee;
    outline-offset:-1px; 
}

td {
    padding:4px 0;
    vertical-align:middle;
    border:none;  }
 
/* =========================
   FILTRER
   =========================*/
.filters-bar {display: flex;
    justify-content:space-between;
    align-items: flex-end;
    margin:10px auto;
    width:100%;
    max-width:1235px;
    gap:20px;
}

.filters-left {width:70%;
    display:flex;
    gap:10px;
    align-items: flex-end;
    justify-content: space-between;
}

.filters-left label,
.filters-left select {
    font-size:13px;
}
.filters-right { display: flex; flex: 0 0 auto;}

#print {color:grey; border: none; background: none; cursor: pointer; margin-bottom: -8px; transition: color 0.2s ease; /* efect de tranziție la hover */}
#print:hover { color: #cda45f;}

.filters-right input{
    display: flex;
    font-size:13px;
    align-items: flex-end;
}

#filter-search {width: 250px;}

.filters-bar input, .filters-bar select {
    height: 30px;
    width: 130px;
    padding: 0 8px;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button#reset-filters {height: 30px; line-height: 0.9; padding: 2px 8px; border: 1px solid #aaa;}
#reset-filters:hover {background: #ddd;}

#reset-genre { margin-left: 10px; height: 30px;
    border: none;
    background: #eee;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    border-radius: 5px;
}
#filter-promo {   width: 90px;}

input:focus,select:focus,textarea:focus { outline: none; border: 2px solid #ccc; box-shadow: 0 2px 6px rgba(74,144,226,.3);}
select option:hover, select option:checked {    background-color: #cda45f; color: #fff;}

/* =========================
   DATA – STIL VERTICAL
   ========================= */

.td-data { }

.data-box {
    display:flex;
    height:100%;
}

/* ziua săptămânii vertical */
.zi-verticala { font-family: sans-serif;     letter-spacing: 1.1px;
    writing-mode:vertical-rl;
    transform:rotate(180deg);
    padding:2px 15px;
    font-size:11px;
    font-weight:500;
    color:#333;
    text-align:center;
}

/* data */
.data-main {line-height:1; font-family: sans-serif;
    fflex:1;
    text-align:right;
    padding:0px 6px;
}

.data-zi {font-family: sans-serif;
    margin-top:2px;
    letter-spacing: 1px;
    font-size:30px;
    font-weight:300;
    color:#222;
}

.data-luna {font-family: sans-serif;
    letter-spacing: 2px;
    margin-top:-2px;
    font-size:11px;
    color:#555;
    font-weight:400;

}

.data-ora {font-family: sans-serif;
    margin-top:0px;
    font-size:18px;
    font-weight:400;
}

/* =========================
   SPECTACOL
   ========================= */
.spectacol-wrap { display:flex;
flex-wrap: wrap;}

.spectacol-title {      
    display:inline-block;
    line-height:0.9;
    letter-spacing: -0.5px;
    text-decoration: none;
    text-transform: uppercase;
    font-size:23px;
    font-weight:800;
    color:#5a6982;
    margin-bottom: 3px;
}

.badge {
    font-size:13px;
    padding:0px 10px 1px;
    margin-left: 10px;
    font-weight:500;
    color:#fff;
    letter-spacing: 1px;
    border-radius:4px;
    background: linear-gradient(
        -45deg, 
        #ffffff00 0%,
        #ffffff95 25%,
        #ffffff00 50%,
        #ffffff95 75%,
        #ffffff00 100%
    );

    background-size: 300% 300%;
    animation: grad 5s linear infinite;
}

@keyframes grad{
    from{
        background-position: 100% 50%;
    }
    to{
        background-position: 0% 50%;
    }
}

.spectacol-descriere, .spectacol-author {display: block; width:100%; font-size:17px; color:#7A7A7A; margin-bottom: 2px; font-style: italic; font-family: sans-serif; line-height:0.9; }

.spectacol-info { font-size:13px; line-height:1;font-weight:400;font-family: sans-serif;}
.spectacol-restrict { color:#93003c; font-weight:500;padding-left:8px;font-family: arial; font-weight:800;}


/* =========================
   SALA
   ========================= */
.data-hall {text-align:center; font-family: sans-serif; font-weight:400;
        font-size:16px;
    color:#333;
    white-space:nowrap;
    padding:14px;}


/* =========================
   BUTON Bilete/Detalii
   ========================= */
button.bilete, button.promo-btn {font-family: sans-serif;
    background:#cda45f;
    border:none;
    padding:3px 25px;
    font-size:13px;
    letter-spacing: 1px;
    font-weight:600;
    color:#fff;
    cursor:pointer;
    border-radius:4px;
}

button.bilete:hover {
    background:#f5a623;
}


/* =========================
   Intrare liberă
   ========================= */
.intrare-libera{ font-size:14px;
    line-height:0.8px;
    font-weight:bold;
    border: 1px solid;
    padding: 5px 15px;
    border-radius: 4px;
    animation: intrareLiberaPulse 1.8s ease-in-out infinite;
}

@keyframes intrareLiberaPulse{

    0%{ color:#CDA55F;
        border-color:#CDA55F;   }
    50%{color:#60825A;
        border-color:#60825A;    }
    100%{color:#CDA55F;
        border-color:#CDA55F;  }
}

@media (max-width:768px){
    .intrare-libera{
    display:block;
    line-height:1;
    font-size:14px;
    border: 0px solid;
    padding: 0px 0px;
    border-radius: 0px;}}

/* =========================
   PROMO
   ========================= */

.spectacol-author.promo-subtitle {color: #699161;}
.spectacol-info.promo-gen {font-family: sans-serif;}
.badge.promo-badge {background-color: #699161;color: #fff;}
button.promo-btn {background-color: #699161; color: #fff;font-family: sans-serif;}
button.promo-btn:hover {background-color: #507149;}



@media (max-width: 1160px) {    #filter-genre,
    #filter-hall{  display: none;}    }
/*///////////////////////////////////////////////////////////////////////////*/
 /* mobil */
@media (max-width: 767px) {
    body { padding:0px;}
    #filter-from, #filter-to {width:100px;}
    
    /* ascunse pe mobil */
    #filter-promo, .data-hall, .badge.premiera, .badge.promo-badge{
        display: none;
    }

    table {margin:0px; margin-bottom:30px;
        width: 90%;
    }
    button.promo-btn {padding: 3px 8px;}
    
    /* container principal */
    .filters-bar {
        width: 100%;
        display: flex;
        flex-direction: column;   /* rânduri */
        gap: 10px;
    }
.data-ora {line-height:1;}

    /* RÂNDUL 1 */
    .filters-left {
        display: flex;
        width: 100%;
        gap: 8px;
        align-items: flex-end;
    }
    .filters-left {padding:0 10px;}
    #filter-from,
    #filter-to {
        flex: 1 1 0;
        min-width: 0;
        height: 30px;
    }

    #reset-filters {
        flex: 0 0 60px;
        height: 30px;
    }

    /* RÂNDUL 2 */
    .filters-right { width: 100%;  }

    #filter-search {margin:0 10px;
        width: 95%;
        height: 30px;
    }
    
button.bilete {
    padding: 4px 10px;  font-size:12px;
    cursor:pointer;
    border-radius:3px;}
    
    /* =========================
   DATA – STIL VERTICAL
   ========================= */
.td-data {width: 75px; min-width: 55px; padding-right: 5px;}
.data-main {padding: 2px 0; width:40px;}
.data-box {    text-align:center;}
.zi-verticala {letter-spacing: 1px; font-weight:600;
    padding:0px; font-size:9px;}
.data-zi {font-size:25px;line-height:0.8;margin-top:-1px;}
.data-luna {margin-top:1px;font-size:10px;}
.data-ora {margin:-1px 0 0 -10px; font-size:16px;}

/*  SPECTACOL  */

.spectacol-img img {width:80px;  height:110px;}

.spectacol-info { font-size:11px;  margin-top:0px;}
}

/* =========================
       LOCURI LIBERE
  ========================== */
/* culoare default */
.locuri-box {height:14px;     margin-top:-4px;}
.numar{display:none;}
.locuri-limitate, .locuri-libere, .locuri-libere-20 {
    color:#7a7a7a;
    font-size: 13px;
}
.locuri-libere-20 { animation: limitePulse 1.6s ease-in-out infinite;}
@keyframes limitePulse{

    0%{
        color:#CDA55F;
    }

    50%{
        color:#7a7a7a;
    }

    100%{
        color:#CDA55F;
        text-shadow:0 0 4px rgba(205,165,95,0.4);
    }

}

/* vandut */
.vandut{
    color:#c00;
    font-weight:900;
    font-size: 18px;
}

/* ultimele bilete */
.ultimele-bilete{
    color:#CDA55F;
    font-weight:bold;
    font-size: 13px;
    margin-top:-10px;
    animation: ultimelePulse 1.6s ease-in-out infinite;
}

@keyframes ultimelePulse{

    0%{
        color:#ff3b3b;
    }

    50%{
        color:#CDA55F;
    }

    100%{
        color:#ff3b3b;
        text-shadow:0 0 4px rgba(205,165,95,0.4);
    }

}


/*   Locuri Libere*/
@media (max-width: 768px){
.spectacol-title { font-size:17px;
    
}

.locuri-libere, .locuri-libere-20, .badge {display:none;}

.locuri-box .numar{
display:inline;
font-weight:700;
font-size:13px;
color:#7a7a7a;

}  
}

/* Trunchiem Auto/regizor doar un rand*/
@media (max-width:768px){
.spectacol-content {width:120px;}
.spectacol-author, .spectacol-descriere {font-size:14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 280px;
    letter-spacing: -0.5px;
}
    #print {
        display: none;
    }
}

/* ============================================ */
.switch {
  position: relative;
  display: inline-flex;       /* folosim flex pentru a poziționa textul deasupra */
  flex-direction: column;     /* textul deasupra slider-ului */

}

.switch input { 
  display: none; 
}


.slider {
  position: relative;          /* schimbăm absolute pe relative ca să funcționeze cu flex */
  cursor: pointer;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 4px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 3px;
}

input:checked + .slider {
  background-color: #cda45f
}

input:checked + .slider:before {
  transform: translateX(30px);
}


/* Tot ce nu e tabel să dispară */
@media print {
    body * {
        visibility: hidden;
    }

    #tickets-app, #tickets-app * {
        visibility: visible;
    }

    #tickets-app {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    /* Ascunde filtrele, butoanele, inputurile */
    .filters-bar,
    button,
    input,
    select {
        display: none !important;
    }
    
.page-title {
    position: relative;
    color: transparent; /* ascunde textul original */
}


.page-title::after {
    content: "TNME CALENDAR"; /* textul vizualizat în loc */
    width:100%;
    color: black;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap; /* forțează totul pe un rând */
    text-overflow: ellipsis; /* opțional: adaugă "..." dacă nu încape */
}

        /* Ascunde ultima coloană (Bilete / Intrare) */
    .table-calendar td:last-child,
    .table-calendar th:last-child {
        display: none !important;
    }
        /* Elimină afișarea URL-urilor după link-uri */
    a[href]:after {
        content: "" !important;
    }

    /* Badge-ul rămâne vizibil */
    .badge {
        display: inline !important; /* forțează să fie vizibil la print */
    }
    
    /* Opțional: elimină underline-ul și culoarea link-urilor */
    a.spectacol-title {
        text-decoration: none !important;
    }
        /* Badge-ul trebuie să fie vizibil */
    .badge {
        display: inline !important;
        visibility: visible !important;

        /* Preia culoarea inline setată în HTML */
        background-color: #cda45f !important;
        color: #fff !important; /* text alb */

        /* Forțează tipărirea fundalului */
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;

        padding: 0.1em 0.8em;
        border-radius: 0.2em;
    }
    
}


/* EXPORT MODE */
.export-image .zi-verticala {
    writing-mode: horizontal-tb !important;
    transform: rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    display: inline-block;
    font-weight: bold;
}

.export-image th:last-child,
.export-image td:last-child {
    display: none !important;
}

.export-image .table-calendar {
    background: #ffffff;
}

.export-image td,
.export-image th {
    background: #ffffff;
}

/* ===== Calendar ===== */
#calendar-view {
    width: 100%;
    max-width: 1235px;
    margin: 10px auto;
    margin-bottom:60px;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    font-size: 20px;
}

.calendar-nav button {
    border: none;
    background: #f2f2f2;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.calendar-nav button:hover {
    background: #e5e5e5;
}

/* Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.weekday {
    text-align: center;
    font-weight: 700;
    padding: 8px 0;
    background: #0f1928;
    color: #cda45f;
    border-radius: 6px;
}

/* Zi calendar */
.calendar-day {
    min-height: 120px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    transition: 0.15s;
}

.calendar-day:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Azi */
.calendar-day.today {
    border: 2px solid #cda55f;
    background: #fff8e5;
}

/* Număr zi */
.day-number {
    font-weight: 700;
    margin-bottom: 5px;
    color: #aaa;
}

/* Eveniment */
.event-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 5px;
    font-size: 11px;
    margin-bottom: 4px;
    line-height: 1.25;
}

/* Ora */
.event-time {
    font-weight: 700;
    color: #000;
}

/* Titlu */
.event-title {
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title:hover {
    text-decoration: none;
    color: #cda55f !important;
}

.event-hall {
    font-size: 0.9em;
    color: #888;
    margin-top: 2px;
}

.tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.view-switch {
    display: flex;
    gap: 10px;
}

.view-switch button {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
}