/* ===========================
   GENEL AYARLAR
=========================== */
body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(270deg, #ff0080, #ff512f, #ffcd3c, #2575fc, #6a11cb, #ff0080);
    background-size: 1200% 1200%;
    animation: gradientAnimation 10s ease infinite;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-align: center;
}

.name {
    text-transform: uppercase !important;
    /* Mavi-Yeşil Neon Efekti */
    text-shadow: 0 0 5px #00f2ff, 0 0 10px #00f2ff, 0 0 20px #00ff9d, 0 0 40px #00ff9d, 0 0 80px #008f5a;
    letter-spacing: 2px;
    border-radius: 12px;
    display: inline-block; 
}

.etkinlikDetails {
    /* Mavi-Yeşil Neon Efekti */
    text-shadow: 0 0 5px rgba(0, 255, 157, 0.6), 0 0 14px rgba(0, 255, 157, 0.3);
    letter-spacing: 0.5px;
    border-radius: 12px;
} 
 
.text-white{
    color:white;
}
/* Hareketli arka plan animasyonu */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===========================
   LOADER
=========================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.1); /* yar? ?effaf beyaz */
    backdrop-filter: blur(12px); /* cam efekti (arka plan flu) */
    -webkit-backdrop-filter: blur(10px); /* Safari uyumlulu?u */
    transition: background 0.3s ease, border-color 0.3s ease;
}


.dotDiv {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
    filter: url('#goo');
    animation: rotate-move 2s ease-in-out infinite;
}

.dot {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #000;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.dot-3 {
    background-color: #f74d75;
    animation: dot-3-move 2s ease infinite, index 6s ease infinite;
}

.dot-2 {
    background-color: #10beae;
    animation: dot-2-move 2s ease infinite, index 6s -4s ease infinite;
}

.dot-1 {
    background-color: #ffe386;
    animation: dot-1-move 2s ease infinite, index 6s -2s ease infinite;
}

@keyframes dot-3-move {
    20% {
        transform: scale(1)
    }

    45% {
        transform: translateY(-18px) scale(.45)
    }

    60% {
        transform: translateY(-90px) scale(.45)
    }

    80% {
        transform: translateY(-90px) scale(.45)
    }

    100% {
        transform: translateY(0px) scale(1)
    }
}

@keyframes dot-2-move {
    20% {
        transform: scale(1)
    }

    45% {
        transform: translate(-16px, 12px) scale(.45)
    }

    60% {
        transform: translate(-80px, 60px) scale(.45)
    }

    80% {
        transform: translate(-80px, 60px) scale(.45)
    }

    100% {
        transform: translateY(0px) scale(1)
    }
}

@keyframes dot-1-move {
    20% {
        transform: scale(1)
    }

    45% {
        transform: translate(16px, 12px) scale(.45)
    }

    60% {
        transform: translate(80px, 60px) scale(.45)
    }

    80% {
        transform: translate(80px, 60px) scale(.45)
    }

    100% {
        transform: translateY(0px) scale(1)
    }
}

@keyframes rotate-move {
    55% {
        transform: translate(-50%, -50%) rotate(0deg)
    }

    80% {
        transform: translate(-50%, -50%) rotate(360deg)
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

@keyframes index {
    0%, 100% {
        z-index: 3
    }

    33.3% {
        z-index: 2
    }

    66.6% {
        z-index: 1
    }
}

/* ===========================
   TOP HEADER
=========================== */
#top-header {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #222;
}

    #top-header .logo img {
        max-width: 150px;
        height: auto;
    }

/* ===========================
   HEADER MENU
=========================== */
#header {
    background: #272727;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #222;
}

.nav-menu {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: 35px;
    justify-content: center;
}

    .nav-menu li {
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .nav-menu li a {
            color: #ddd;
            font-weight: 600;
            padding: 8px 3px;
            text-decoration: none;
            transition: 0.3s ease;
            letter-spacing: .5px;
        }

            .nav-menu li a:hover {
                color: #ffffff;
                border-bottom: 2px solid #c600ff;
            }

.menu-active a {
    color: #fff !important;
    border-bottom: 2px solid #c600ff;
}

/* Responsive Menü */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
}

/* ===========================
   RENDER BODY ALANI
=========================== */
#pages_placeholder {
    min-height: 500px;
    padding-top: 20px;
}

/* ===========================
   COOKIE NOTICE (VARSA)
=========================== */
#cookie-notice {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    border-top: 1px solid #222;
}

/* ================================
   MANUEL BOOTSTRAP CONTAINER 
================================ */

.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ekran genişlikleri bootstrap ile aynıdır */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ================================
   MANUEL ROW
================================ */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

 
 
.reservationList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resCard {
    margin: 10px;
    background: #272727;
    border: 1px solid #222; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    flex-direction: column;
}

.resIptal {
    backdrop-filter: blur(1px);
    background: #00000063;
    z-index: 20;
    margin-left: -5px !important;
    border-radius: 20px;
}
    .resIptal .resIptalText {
        font-size: 18px;
        opacity: 0.95;
        background: rgba(255, 0, 0, 0.35); /* kırmızı + şeffaf */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: white;
        padding: 8px 16px;
        border-radius: 12px;
        display: inline-block;
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
.resCard:hover {
    border-color: #c600ff;
    box-shadow: 0 0 12px #c600ff44;
    transform: translateY(-3px);
}

.resLeft {
    display: flex;
    align-items: center;
    gap: 15px;
}

.resCount {
    background: #c600ff;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px #c600ffaa;
}

.resInfo {
    display: flex;
    flex-direction: column;
    color: #ddd;
    align-items: flex-start;
}

    .resInfo .name {
        font-size: 18px;
        font-weight: 600;
        color: #fff;
    }

    .resInfo .phone {
        font-size: 15px;
        opacity: .7;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        -webkit-user-select: none;
    }

.resRight {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: column; /* Dikey düzenleme */ 
}

.btnRow {
    width: 100%;
    justify-content: space-between; /* sağa – sola yasla */
    gap: 10px;
}

    .btnRow .callBtn,
    .btnRow .islemBtn {
        flex: 1; /* ekrana göre genişle */
    }

    /* İstersen buton yazıları ortalı kalsın */
    .btnRow .btn {
        text-align: center;
    }


/* Mobilde düzeni değiştirme: butonlar yatay sıralanacak */
@media (max-width: 576px) {
    .resRight {
        flex-direction: column; /* Mobilde dikey yapalım */
        gap: 10px;
        align-items: center; /* Butonları ortalar */
    }

    .d-flex {
        flex-direction: row; /* "ARA" ve "İŞLEM YAP" butonlarını yatay yapalım */
        justify-content: center; /* Butonları ortala */
        gap: 10px; /* Aralarındaki boşluk */
    }
     
    .delBtn {
        width: 100%; /* "İPTAL" butonunu tam genişlikte yap */
        margin-top: 10px; /* Üstten biraz boşluk bırak */
    }
}

    .resRight .callBtn,
    .resRight .islemBtn, .delBtn {
        padding: 10px 15px !important;
        border: none !important;
        border-radius: 10px !important;
        cursor: pointer !important;
        text-decoration: none !important;
        color: #fff !important;
        transition: 0.3s !important;
    }

.islemBtn {
    background: #6c757d;
    font-weight: 800;
}

.callBtn {
    background: #4da3ff;
    font-weight: 600;
}

    .callBtn:hover {
        background: #e945ff;
        box-shadow: 0 0 10px #c600ff88;
    }


/* MOBILE GÖRÜNÜM */
@media (max-width: 768px) {
    .resInfo { 
        align-items: center;
    }
    .resTop {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resCard {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resLeft {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .resCount {
        font-size: 26px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .resInfo .name {
        margin-bottom: 10px;
    }

    .resRight {
        display: flex;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
}


.addBtnTop {
    display: inline-block;
    margin-bottom: 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff00e6, #ff5bf5);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 12px #ff00e6aa;
    transition: 0.25s ease;
}

    .addBtnTop:hover {
        transform: scale(1.08);
        box-shadow: 0 0 18px #ff00e6cc, 0 0 28px #ff55ff99;
    }

.reportCard {
    margin-bottom: 25px;
    background: #1f1f1f;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 12px #00000066;
}

.reportItem {
    text-align: center;
    flex: 1;
}

    .reportItem .label {
        color: #aaa;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .reportItem .value {
        color: #fff;
        font-size: 20px;
        font-weight: bold;
    }

@media (max-width: 768px) {
    .reportCard {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


.reportFilterCard {
    background: #272727;
    border: 1px solid #222;
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 20px;
    transition: 0.3s;
    box-shadow: 0 0 8px #00000055;
}

    .reportFilterCard:hover {
        border-color: #c600ff;
        box-shadow: 0 0 15px #c600ff55;
        transform: translateY(-3px);
    }

    .reportFilterCard label {
        font-size: 16px;
        color: #eaeaea;
        margin-bottom: 8px;
    }

.report-date-input {
    padding: 12px 14px;
    font-size: 15px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.25s;
}

    .report-date-input:focus {
        border-color: #c600ff;
        box-shadow: 0 0 10px #c600ff55;
    }


/* Detay Alanı */
.resDetailsContainer {
    width: 100%;    
}
.resDetails {
    width: 100%;
    margin-top: 15px;
    padding: 5px;
    background: #1c1c1c;
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
}

    .resDetails .detailLine {
        /*margin-bottom: 6px;*/
    }

    .resDetails strong {
        color: #fff;
    }

.resTop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
}
/*geldi gelmedi style ayarları*/
.statusBadges {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.badge {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: .2px;
    background: transparent;
    border: 1px solid transparent;
    opacity: .5;
}

    /* GELDİ */
    .badge.arrived.ok {
        color: #2f855a;
        border-color: rgba(47, 133, 90, .25);
        background: rgba(47, 133, 90, .06);
    }

    /* GELMEDİ */
    .badge.arrived.no {
        color: #c53030;
        border-color: rgba(197, 48, 48, .25);
        background: rgba(197, 48, 48, .06);
    }

    /* ARANDI */
    .badge.called.ok {
        color: #0079f7;
        border-color: rgba(43, 108, 176, .25);
        background: rgba(43, 108, 176, .06);
    }

    /* ARANMADI */
    .badge.called.no {
        color: #718096;
        border-color: rgba(113, 128, 150, .25);
        background: rgba(113, 128, 150, .05);
    }


/*kart kenarları renklendir*/

.resCard.geldi {
    border-left: 5px solid #28a745;
}

.resCard.gelmedi {
    border-left: 5px solid #dc3545;
}

.resCard.arandi {
    box-shadow: inset -4px 0 0 #0d6efd;
}

.resCard.aranmadi {
    box-shadow: inset -4px 0 0 #adb5bd;
}


/*Takvim sayfası----------------------------------------------------------------*/

#calendarPage { 
    color: white;
}

/* Default: mobile */
.calendar-grid {
    display: none; /* Başlangıçta gizli */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    margin: auto;
}
/* Tablet */
@media (min-width: 576px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptop */
@media (min-width: 992px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}
.myRadius {
    border-radius: 14px !important;
}
.calendar-day {
    position: relative;
    aspect-ratio: 1/1.3;
    background: #111827;
    border-radius: 14px;
    padding: 8px;
    padding-top: 25px;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* taşmayı engeller */
    min-width: 0; /* grid taşma fix */
    transition: transform 0.2s ease-out;
}
    .calendar-day:hover {
        transform: translateY(-4px) scale(1.02);
    }
    .calendar-day .day-number {
        
        top: 6px;
        left: 8px;
        font-size: 22px;
        font-weight: 800;
        color: #fff;
    }

    .calendar-day .event {
        margin-top: 15px;
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 1.2;
        background: rgba(0,0,0,0.4);
        padding: 15px;
        border-radius: 6px;
        border-left: 3px solid #d8a200;
        color: #fff;
        word-break: break-word; /* uzun yazı kırılma fix */
    }

    .calendar-day .day-number {
        font-size: 22px;
        font-weight: 800; 
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
    }

    .calendar-day .day-name {
        font-size: 14px;
        font-weight: 600;
        opacity: 0.85;
        color: #ffffff80;
    }


.afis-badge {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

    /* Hazır / Yeşil */
    .afis-badge.ready {
        background-color: #28a745;
    }

    .afis-badge.not-ready {
        background-color: #FFC107; /* Sarı */
        color: #212529; /* Koyu gri / siyah yazı */
    }


    /*Liste görünümü ----------------------------------*/

#calendarList {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: auto;
}

    #calendarList .calendar-day {
        width: 100%;
        min-height: 110px;
        aspect-ratio: auto;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10px;
        margin: 5px 0;
    }

    #calendarList .day-number {
        font-size: 26px;
        min-width: 70px;
        text-align: center;
    }

    #calendarList .event {
        flex: 1;
        font-size: 15px;
        padding: 10px 12px;
    } 