/* =========================================
   Staff Management Feature Page
   ========================================= */

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

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

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

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

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

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

/* =========================================
   EMPATHY SECTION
   ========================================= */
.stf-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(--stf-text-main);
}

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

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

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

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

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

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

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

.stf-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%);
}

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

.stf-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);
}

.stf-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(--stf-border-radius);
    transition: var(--stf-transition);
}

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

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

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

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

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

.stf-bento-card-content {
    padding: 28px 28px 20px;
}

.stf-bento-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--stf-text-main);
    line-height: 1.4;
}

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

.stf-bento-card-visual {
    padding: 0 32px 32px;
    margin-top: auto;
    min-height: auto;
}

/* Icon Cards (Row 2) */
.stf-bento-card--icon {
    padding: 28px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.stf-bento-card--icon h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.stf-bento-card--icon p {
    font-size: 0.85rem;
}

.stf-bento-card--icon .stf-bento-icon {
    margin-bottom: 16px;
}

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

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

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

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

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

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

.stf-bento-icon--teal {
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

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

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

/* --- Bento Visual --- */
.stf-bento-card-visual img {
    width: 100%;
    object-fit: none;
    border-radius: 12px;
    display: block;
    height: 300px;
}

.stf-bento-card-visual img.stf-img-square {
    aspect-ratio: 1/1;
    object-position: top right;
}

.stf-bento-card-visual img.stf-img-portrait {
    aspect-ratio: 4/3;
    object-position: top right;
    height: 300px;
}

.stf-bento-card-visual img.stf-img-landscape {
    aspect-ratio: 16/10;
    object-position: top right;
}

.stf-bento-card--wide .stf-bento-card-visual {
    flex: 1;
    padding: 32px;
    min-height: 280px;
}

.stf-bento-card--tall .stf-bento-card-visual {
    padding: 0 32px 32px;
    flex: 1;
}

/* --- Feature UI Mockups --- */
.stf-ui {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 30px -14px rgba(10, 25, 47, 0.18);
    color: var(--stf-text-main);
}

.stf-ui-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.stf-ui-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--stf-text-main);
}

.stf-ui-chip {
    font-size: 0.68rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

.stf-ui-chip--green {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.stf-ui-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.stf-ui-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--av, #6366f1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex: none;
}

.stf-ui-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--stf-text-main);
}

.stf-ui-tag {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.stf-ui-tag--admin {
    background: #6366f1;
    color: #fff;
}

.stf-ui-tag--cash {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.stf-ui-tag--waiter {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.stf-ui-eat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--stf-text-main);
}

.stf-ui-eat-qty {
    font-weight: 700;
    color: #64748b;
}

.stf-ui-btn {
    margin-top: 2px;
    padding: 9px;
    border: none;
    border-radius: 10px;
    background: var(--stf-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.stf-ui-btn:hover {
    background: var(--stf-primary-hover);
}

.stf-ui-table {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    overflow: hidden;
}

.stf-ui-tr {
    display: flex;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 0.76rem;
    color: var(--stf-text-main);
}

.stf-ui-tr + .stf-ui-tr {
    border-top: 1px solid #eef2f7;
}

.stf-ui-tr--head {
    background: #f8fafc;
    font-weight: 700;
    color: var(--stf-text-muted);
}

.stf-ui-amount {
    font-weight: 700;
    color: #16a34a;
}

/* =========================================
   TRUST SECTION
   ========================================= */
.stf-trust-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(--stf-text-main);
}

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

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

.stf-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.stf-trust-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--stf-border-radius);
    padding: 32px;
    text-align: center;
    transition: var(--stf-transition);
}

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

.stf-trust-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

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

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

.stf-trust-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--stf-text-main);
}

.stf-trust-card p {
    font-size: 0.9rem;
    color: var(--stf-text-muted);
    line-height: 1.7;
    margin: 0;
}

.stf-trust-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(--stf-border-radius);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--stf-transition);
}

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

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

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

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

    .stf-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stf-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .stf-trust-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

    .stf-feature-row {
        padding: 24px 20px;
    }
}
