
.masalar-konteyner {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.nav-tabs-modern {
    border-bottom: none;
    gap: 15px;
    margin-bottom: 25px;
}

    .nav-tabs-modern .nav-item .nav-link {
        border: none;
        border-radius: 20px;
        background-color: #f1f4f8;
        color: #495057;
        padding: 12px 30px;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.2s ease;
    }

        .nav-tabs-modern .nav-item .nav-link:hover {
            background-color: #e2e6ea;
        }

        .nav-tabs-modern .nav-item .nav-link.active {
            background-color: #0d6efd !important;
            color: white !important;
            box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
        }

.masa-kart-modern {
    background: #fff;
    border-radius: 25px;
    display: flex;
    overflow: hidden; overflow-x: auto;
    height: 180px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

    .masa-kart-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .masa-kart-modern a {
        text-decoration: none;
        color: inherit;
        display: flex;
        width: 100%;
        height: 100%;
    }

.kart-sol-resim {
    position: relative;
    width: 35%;
    height: 100%;
}

    .kart-sol-resim img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px 0 0 25px;
    }

.masa-no-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255,255,255,0.7);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(2px);
}

.kart-sag-detay {
    width: 65%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kart-detay-ust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.baslik-grup {
    display: flex;
    flex-direction: column;
}

.lbl-masa-adi {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: 500;
    margin: 0;
}

.txt-salon-adi {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2b2d42;
    margin: 2px 0 0 0;
}

.durum-grup {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.status-check-icon {
    font-size: 1rem;
    color: #a0a0a0;
}

.txt-aktif {
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #a0a0a0;
    letter-spacing: 0.5px;
}

.kart-detay-orta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tutar-grup {
    display: flex;
    flex-direction: column;
}

.lbl-toplam-tutar {
    font-size: 0.7rem;
    color: #a0a0a0;
    font-weight: 500;
    text-transform: uppercase;
}

.txt-tutar {
    font-size: 1.8rem;
    font-weight: 800;
    color: #03a9f4;
    letter-spacing: -1px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clock-icon-small {
    font-size: 0.9rem;
    color: #ff9f1c;
}

.txt-rezervasyon-saat {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.kart-detay-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.bilgi-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bilgi-icon {
    font-size: 0.9rem;
    color: #7a7a7a;
}

.bg-rezervasyon {
    border: 1px solid rgba(255, 159, 28, 0.2);
}

    .bg-rezervasyon .status-check-icon {
        color: #ff9f1c;
    }

    .bg-rezervasyon .txt-aktif {
        color: #ff9f1c;
    }

.bg-dolu {
    border: 1px solid rgba(231, 29, 54, 0.2);
}

    .bg-dolu .status-check-icon {
        color: #e71d36;
    }

    .bg-dolu .txt-aktif {
        color: #e71d36;
    }

.bg-bos {
    border: 1px solid rgba(46, 196, 182, 0.2);
}

    .bg-bos .status-check-icon {
        color: #2ec4b6;
    }

    .bg-bos .txt-aktif {
        color: #2ec4b6;
    }


@media (max-width: 768px) {
    .table-responsive-sm { overflow-x: auto !important; }
    
    .card .header h2,
    .card .header h3 {
        font-size: 1rem !important;
        line-height: 1.4;
    }
    
    .btn-group,
    .nav-align-top {
        flex-wrap: wrap !important;
        gap: 0.25rem;
    }
    
    
    .input-group {
        flex-wrap: wrap;
    }
    
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }
    
    section.content {
        padding: 0.5rem !important;
    }
    .footerimages-row img {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    .card {
        margin-bottom: 0.75rem;
    }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    .btn-action { padding: 0.35rem 0.5rem; }
}
.masalar-konteyner {
    padding: 4px 0;
}

.nav-tabs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0 !important;
}

    .nav-tabs-modern .nav-item {
        margin-bottom: 0;
    }

    .nav-tabs-modern .nav-link {
        border: 1.5px solid #e2e8f0;
        border-bottom: none;
        border-radius: 10px 10px 0 0;
        padding: 8px 16px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #64748b;
        background: #f8fafc;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

        .nav-tabs-modern .nav-link:hover {
            color: #1cbfd0;
            background: #f0fdff;
            border-color: #1cbfd0;
        }

        .nav-tabs-modern .nav-link.active {
            color: #fff;
            background: #1cbfd0;
            border-color: #1cbfd0;
        }

.masa-kart-modern {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

    .masa-kart-modern:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.22) !important;
    }

    .masa-kart-modern > a {
        display: flex;
        text-decoration: none !important;
        color: inherit !important;
        height: 100%;
        min-height: 110px;
    }

.kart-sol-resim {
    position: relative;
    width: 88px;
    flex-shrink: 0;
    overflow: hidden;
}

    .kart-sol-resim img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        filter: brightness(0.8);
    }

.masa-no-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}
.kart-sag-detay {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    gap: 4px;
    min-width: 0;
}

.kart-detay-ust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
}

.baslik-grup {
    min-width: 0;
}

.lbl-masa-adi {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.2;
}

.txt-salon-adi {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    line-height: 1.3;
    color: #fff;
}

.durum-grup {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.status-check-icon {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
}

.txt-aktif {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.85);
}

.kart-detay-orta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lbl-toplam-tutar {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1;
}

.txt-tutar {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

.saat-grup {
    flex-shrink: 0;
}

.clock-icon-small {
    font-size: 0.72rem;
    margin-right: 3px;
    color: rgba(255,255,255,0.8);
}

.txt-rezervasyon-saat {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

.kart-detay-alt {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.bilgi-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
}

.bilgi-icon {
    font-size: 0.65rem;
}

.siparis-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.siparis-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}

.badge-toplam-siparis {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.badge-bekleyen-siparis {
    background: rgba(0,0,0,0.22);
    color: #fff;
    animation: pulse-fade 1.8s infinite;
}
.rezervasyon-uyari {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 700;
    background: rgba(0,0,0,0.2);
    color: #fff;
    margin-top: 2px;
    white-space: nowrap;
    max-width: fit-content;
}
    .rezervasyon-uyari.yakin {
        background: rgba(255,255,255,0.28);
        animation: pulse-fade 1.2s infinite;
    }

@keyframes pulse-fade {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
.bg-dolu {
    background: linear-gradient(135deg, #9f1239 0%, #881337 100%) !important;
    border-color: #4c0519 !important;
}

.bg-bos {
    background: linear-gradient(135deg, #0f766e 0%, #0d6b63 100%) !important;
    border-color: #134e4a !important;
}
.bg-rezervasyon {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%) !important;
    border-color: #78350f !important;
}
.bg-siparis-bekliyor {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    border-color: #4c1d95 !important;
}
.bg-siparis-verildi {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%) !important;
    border-color: #172554 !important;
}
.bg-secondary.masa-kart-modern {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    border-color: #1e293b !important;
}
@media (max-width: 576px) {
    .nav-tabs-modern .nav-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .kart-sol-resim {
        width: 70px;
    }

    .txt-salon-adi {
        font-size: 0.85rem;
        max-width: 100px;
    }

    .txt-tutar {
        font-size: 0.9rem;
    }

    .kart-sag-detay {
        padding: 8px 10px;
    }

    .bilgi-item {
        font-size: 0.62rem;
    }
}

@media (max-width: 360px) {
    .kart-sol-resim {
        width: 58px;
    }

    .txt-salon-adi {
        font-size: 0.78rem;
        max-width: 80px;
    }

    .txt-tutar {
        font-size: 0.82rem;
    }
}
