/* =========================================
   Table Management Feature Page
   ========================================= */

:root {
    --tm-primary: #0A192F;
    --tm-primary-hover: rgb(76, 62, 221);
    --tm-bg-light: #F8FAFC;
    --tm-bg-white: #FFFFFF;
    --tm-text-main: #0F172A;
    --tm-text-muted: #475569;
    --tm-border-radius: 14px;
    --tm-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Section Header --- */
.tm-section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-inline: auto;
}

.tm-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--tm-text-main);
}

.tm-section-header p {
    font-size: 1.15rem;
    color: var(--tm-text-muted);
}

/* --- Scroll Animation --- */
.tm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.tm-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   EMPATHY SECTION
   ========================================= */
.tm-empathy-theme {
    background-color: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--tm-text-main);
}

.tm-empathy-theme .tm-section-header h2 {
    color: var(--tm-text-main);
}

.tm-empathy-theme .tm-section-header p {
    color: var(--tm-text-muted);
}

.tm-empathy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tm-empathy-card {
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    transition: var(--tm-transition);
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
}

.tm-empathy-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

.tm-empathy-card--image {
    position: relative;
    border: none;
    background: none;
}

.tm-empathy-card--image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.tm-empathy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
}

.tm-empathy-overlay * {
    color: #ffffff;
}

.tm-empathy-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


.tm-empathy-card-inner {
    padding: 32px;
    text-align: center;
}

.tm-empathy-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--tm-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tm-empathy-icon--orange {
    background-color: rgba(255, 123, 38, 0.1);
    color: #ff7b26;
}

.tm-empathy-icon--red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.tm-empathy-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tm-text-main);
}

.tm-empathy-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.tm-empathy-conclusion {
    margin-top: 48px;
    text-align: center;
    padding: 24px 32px;
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--tm-border-radius);
    transition: var(--tm-transition);
}

.tm-empathy-conclusion:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

.tm-empathy-conclusion p {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tm-text-main);
    margin: 0;
}

/* =========================================
   BENTO GRID (Features)
   ========================================= */
.tm-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tm-bento-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--tm-transition);
}

.tm-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}



.tm-bento-card-content {
    padding: 32px 32px 24px;
}

.tm-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tm-bento-icon--blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tm-bento-icon--green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.tm-bento-icon--purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.tm-bento-icon--orange {
    background-color: rgba(255, 123, 38, 0.1);
    color: #ff7b26;
}

.tm-bento-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--tm-text-main);
    line-height: 1.4;
}

.tm-bento-card p {
    font-size: 0.95rem;
    color: var(--tm-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* --- Bento Visual: Floor Map --- */
.tm-bento-card-visual {
    padding: 0 32px 32px;
    margin-top: auto;
}

.tm-floor-map {
    background-color: var(--primary-background);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tm-floor-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-floor-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tm-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tm-tables-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tm-table {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    transition: var(--tm-transition);
}

.tm-table--empty {
    background-color: #22c55e;
}

.tm-table--occupied {
    background-color: #ef4444;
}

.tm-table--reserved {
    background-color: #f59e0b;
}

/* --- Bento Visual: Queue --- */
.tm-queue-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-background);
    border-radius: 12px;
    padding: 12px 16px;
}

.tm-queue-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tm-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tm-queue-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-queue-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tm-text-main);
}

.tm-queue-count {
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

.tm-queue-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.tm-queue-status--waiting {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.tm-queue-status--assigned {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* --- Bento Visual: Invoice --- */
.tm-invoice-mock {
    background-color: var(--primary-background);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-invoice-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}

.tm-invoice-badge--a {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.tm-invoice-badge--b {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.tm-invoice-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tm-text-main);
    direction: ltr;
}

.tm-invoice-divider {
    height: 1px;
    background-color: #e2e8f0;
}

.tm-invoice-row--total {
    font-weight: 700;
    color: var(--tm-text-main);
    font-size: 1rem;
}

/* --- Bento Visual: Status --- */
.tm-status-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tm-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--tm-text-muted);
}

.tm-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.tm-legend-dot--empty {
    background-color: #22c55e;
}

.tm-legend-dot--occupied {
    background-color: #ef4444;
}

.tm-legend-dot--reserved {
    background-color: #f59e0b;
}

.tm-status-tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tm-status-table {
    background-color: var(--primary-background);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.tm-status-table--empty {
    background-color: #22c55e;
}

.tm-status-table--occupied {
    background-color: #ef4444;
}

.tm-status-table--reserved {
    background-color: #f59e0b;
}

/* =========================================
   INTEGRATION SECTION
   ========================================= */
.tm-integration-theme {
    background-color: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.05) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--tm-text-main);
}

.tm-integration-theme .tm-section-header h2 {
    color: var(--tm-text-main);
}

.tm-integration-theme .tm-section-header p {
    color: var(--tm-text-muted);
}

.tm-integration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.tm-integration-card {
    position: relative;
    border-radius: var(--tm-border-radius);
    overflow: hidden;
    transition: var(--tm-transition);
    flex: 1;
    max-width: 340px;
}

.tm-integration-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

.tm-integration-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    flex-shrink: 0;
    color: var(--primary-cta);
}

.tm-integration-card-icon {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--tm-border-radius);
    overflow: hidden;
}

.tm-integration-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-integration-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
    border-radius: 0 0 var(--tm-border-radius) var(--tm-border-radius);
}

.tm-integration-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.4;
}

.tm-integration-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

.tm-integration-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

.tm-integration-link:hover {
    opacity: 0.8;
}

.tm-integration-note {
    margin-top: 48px;
    text-align: center;
    padding: 24px 32px;
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--tm-border-radius);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--tm-transition);
}

.tm-integration-note:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

.tm-integration-note p {
    font-size: 1.05rem;
    color: var(--tm-text-muted);
    margin: 0;
    line-height: 1.8;
}

/* =========================================
   CTA FORM - Disable Animations
   ========================================= */
.tm-main .cta-section,
.tm-main .cta-section.inv-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .tm-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tm-empathy-cards {
        grid-template-columns: 1fr;
    }

    .tm-bento-grid {
        grid-template-columns: 1fr;
    }

    .tm-integration-flow {
        flex-direction: column;
    }

    .tm-integration-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .tm-integration-card {
        max-width: 100%;
        width: 100%;
    }

    .tm-status-tables {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tm-section-header h2 {
        font-size: 1.6rem;
    }

    .tm-bento-card-content {
        padding: 24px 20px 20px;
    }

    .tm-bento-card-visual {
        padding: 0 20px 24px;
    }
}