﻿/* ============================================================ */
/*  PLATR — Page Styles                                         */
/*  Glassmorphism to match site.css background + FinMetrics    */
/* ============================================================ */

/* ── Page wrapper ───────────────────────────────────────────── */
.platr-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5% 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Shared glass section shell ─────────────────────────────── */
.section-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #f0f4f8;
    margin-bottom: 0.5rem;
}

.section-sub {
    color: #cae4f0;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    max-width: 780px;
    line-height: 1.7;
}

/* ============================================================ */
/*  HERO                                                         */
/* ============================================================ */
.platr-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.platr-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    color: #e0eaf5;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    padding: 0.35rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.platr-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f0f4f8;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.platr-hero .description {
    color: #cae4f0;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.platr-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-feature-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    padding: 1.4rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

    .hero-feature-card:hover {
        background: rgba(0, 0, 0, 0.35);
    }

.hf-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hf-title {
    font-weight: 700;
    font-size: 0.97rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.hf-sub {
    font-size: 0.83rem;
    color: #e2eef7;
    line-height: 1.6;
}

/* ============================================================ */
/*  LIVE TABLE STATUS                                            */
/* ============================================================ */
.table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.legend-pill {
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1.5px solid;
}

    .legend-pill.green {
        color: #4ade80;
        border-color: #4ade80;
        background: rgba(74,222,128,0.12);
    }

    .legend-pill.red {
        color: #f87171;
        border-color: #f87171;
        background: rgba(248,113,113,0.12);
    }

    .legend-pill.blue {
        color: #60a5fa;
        border-color: #60a5fa;
        background: rgba(96,165,250,0.12);
    }

    .legend-pill.yellow {
        color: #facc15;
        border-color: #facc15;
        background: rgba(250,204,21,0.12);
    }

.table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-card {
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1.5px solid;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 110px;
}

    .table-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    }

    .table-card.selected {
        box-shadow: 0 0 0 3px #60a5fa;
    }

    .table-card.available {
        background: #f0fdf4;
        border-color: #86efac;
    }

    .table-card.occupied {
        background: #fef2f2;
        border-color: #fca5a5;
    }

    .table-card.bill-pending {
        background: #eff6ff;
        border-color: #93c5fd;
    }

    .table-card.cleaning {
        background: #fefce8;
        border-color: #fde047;
    }

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.tc-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.tc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .tc-dot.green {
        background: #22c55e;
    }

    .tc-dot.red {
        background: #ef4444;
    }

    .tc-dot.blue {
        background: #3b82f6;
    }

    .tc-dot.yellow {
        background: #eab308;
    }

.tc-status {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

    .tc-status.green {
        color: #16a34a;
    }

    .tc-status.red {
        color: #dc2626;
    }

    .tc-status.blue {
        color: #2563eb;
    }

    .tc-status.yellow {
        color: #ca8a04;
    }

.tc-seats {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.tc-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    color: #475569;
}

/* Detail panel */
.table-detail-panel {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    margin-top: 0.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.tdp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.tdp-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f0f4f8;
}

.tdp-close {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    font-size: 0.9rem;
    cursor: pointer;
    color: #cde3f5;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    transition: all 0.15s;
    line-height: 1;
}

    .tdp-close:hover {
        background: rgba(255,255,255,0.22);
        color: #fff;
    }

.tdp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tdp-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
}

.tdp-item-icon {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: #94a3b8;
}

.tdp-item-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.tdp-item-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

/* ============================================================ */
/*  KOT SECTION                                                  */
/* ============================================================ */
.kot-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.kot-ticket-wrap {
    display: flex;
    justify-content: center;
}

.kot-ticket {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.6rem;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    font-size: 0.88rem;
}

.kot-restaurant {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.kot-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 0.4rem;
}

.kot-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
}

.kot-divider {
    border: none;
    border-top: 1.5px dashed #e2e8f0;
    margin: 0.8rem 0;
}

.kot-divider-light {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 0.75rem 0;
}

.kot-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.kot-item-notes {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.kot-item-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.7rem;
    border-radius: 50px;
}

    .kot-item-status.preparing {
        color: #d97706;
        background: #fef3c7;
    }

    .kot-item-status.ready {
        color: #16a34a;
        background: #dcfce7;
    }

    .kot-item-status.pending {
        color: #6366f1;
        background: #eef2ff;
    }

.kot-footer {
    font-size: 0.78rem;
    color: #dc2626;
    background: #fff5f5;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    border-left: 3px solid #ef4444;
}

.kot-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.kot-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.ks-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ks-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f0f4f8;
    margin-bottom: 0.25rem;
}

.ks-sub {
    font-size: 0.85rem;
    color: #cae4f0;
    line-height: 1.6;
}

/* ============================================================ */
/*  FILTER TABS                                                  */
/* ============================================================ */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.filter-tab {
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.83rem;
    font-weight: 500;
    color: #f0f4f8;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .filter-tab:hover {
        border-color: #60a5fa;
        color: #fff;
        background: rgba(96, 165, 250, 0.2);
    }

    .filter-tab.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
        font-weight: 600;
    }

/* ============================================================ */
/*  DATA TABLE                                                   */
/* ============================================================ */
.data-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.93);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

    .data-table thead tr {
        background: #f8fafc;
    }

    .data-table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #94a3b8;
        border-bottom: 1px solid #e2e8f0;
        white-space: nowrap;
    }

    .data-table td {
        padding: 0.8rem 1rem;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .data-table tbody tr:hover {
        background: #f8fafc;
    }

    .data-table td small {
        color: #94a3b8;
        font-size: 0.78rem;
    }

.mono {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: #475569;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

    .status-badge.green {
        background: #dcfce7;
        color: #16a34a;
    }

    .status-badge.red {
        background: #fee2e2;
        color: #dc2626;
    }

    .status-badge.blue {
        background: #dbeafe;
        color: #2563eb;
    }

    .status-badge.amber {
        background: #fef3c7;
        color: #d97706;
    }

    .status-badge.grey {
        background: #f1f5f9;
        color: #64748b;
    }

/* ============================================================ */
/*  BOOKING STATS                                                */
/* ============================================================ */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.booking-stat {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.07);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(12, 18, 30, 0.08);
}

.bs-value {
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.bs-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================================ */
/*  CTA                                                          */
/* ============================================================ */
.platr-cta {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
    padding: 4rem 2rem;
}

    .platr-cta h2 {
        font-size: 2rem;
        font-weight: 800;
        color: #f0f4f8;
        margin-bottom: 0.75rem;
    }

    .platr-cta p {
        color: #cae4f0;
        margin-bottom: 2rem;
        font-size: 1rem;
    }

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    padding: 0.85rem 2.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(59,130,246,0.45);
}

    .cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59,130,246,0.6);
    }


/* ============================================================ */
/*  RESPONSIVE                                                   */
/* ============================================================ */
@media (max-width: 900px) {
    .table-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .platr-hero-features {
        grid-template-columns: 1fr;
    }

    .kot-layout {
        grid-template-columns: 1fr;
    }

    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tdp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .platr-hero h1 {
        font-size: 1.8rem;
    }

    .table-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-card {
        padding: 1.4rem;
    }

    .tdp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
