/* ==========================================================================
   Sentras Training Catalog & Schedule - Premium High-End Corporate UI/UX
   ========================================================================== */

.stc-catalog-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #0f172a !important;
    max-width: 1200px !important;
    margin: 30px auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.stc-catalog-wrapper * {
    box-sizing: border-box !important;
}

/* --- 1. FILTER & SEARCH CONTROL BAR --- */
.stc-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    background: #ffffff !important;
    padding: 20px 24px !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 20px !important;
    align-items: center !important;
}

.stc-search-box {
    flex: 3 !important;
    min-width: 320px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.stc-search-icon {
    position: absolute !important;
    left: 16px !important;
    font-size: 16px !important;
    color: #64748b !important;
    pointer-events: none !important;
}

.stc-search-box input {
    width: 100% !important;
    height: 50px !important;
    padding: 10px 42px 10px 46px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.stc-search-box input::placeholder {
    color: #94a3b8 !important;
    font-size: 14px !important;
}

.stc-search-box input:focus {
    border-color: #059669 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

#stc-search-clear {
    position: absolute !important;
    right: 14px !important;
    background: #e2e8f0 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

#stc-search-clear:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

.stc-select-box {
    flex: 2 !important;
    min-width: 260px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.stc-select-box label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    white-space: nowrap !important;
}

.stc-select-box select {
    width: 100% !important;
    height: 50px !important;
    padding: 10px 38px 10px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: #f8fafc url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 14px center/16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.stc-select-box select:focus {
    border-color: #059669 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

/* --- 2. META STATUS BAR --- */
.stc-meta-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding: 0 6px !important;
    font-size: 14px !important;
    color: #64748b !important;
}

.stc-total-info {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
}

.stc-total-badge {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    border: 1px solid #a7f3d0 !important;
}

.stc-badge-info {
    font-size: 13px !important;
    color: #64748b !important;
}

/* --- 3. MODERN CARD TABLE --- */
.stc-table-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
}

.stc-table-responsive {
    overflow-x: auto !important;
    width: 100% !important;
}

.stc-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    text-align: left !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.stc-table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 18px 22px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

.stc-table tbody tr {
    transition: all 0.2s ease !important;
    background: #ffffff !important;
}

.stc-table tbody tr:hover {
    background: #f0fdf4 !important; /* Soft green highlight on hover */
}

.stc-table tbody td {
    padding: 18px 22px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.stc-table tbody tr:last-child td {
    border-bottom: none !important;
}

.stc-col-num {
    color: #94a3b8 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* Program Title */
.stc-title-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.stc-title-link {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.stc-title-link:hover {
    color: #059669 !important;
}

.stc-link-arrow {
    display: inline-block !important;
    margin-left: 4px !important;
    font-size: 14px !important;
    color: #10b981 !important;
    opacity: 0.6 !important;
    transition: all 0.2s ease !important;
}

.stc-title-link:hover .stc-link-arrow {
    transform: translate(2px, -2px) !important;
    opacity: 1 !important;
}

/* Category Badges */
.stc-badges-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.stc-category-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 12px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
}

/* Action Buttons */
.stc-actions-cell {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.stc-btn-register {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #0284c7 !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    border: none !important;
}

.stc-btn-register:hover {
    background: #0369a1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
}

.stc-btn-contact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.stc-btn-contact:hover {
    background: #f0fdf4 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

/* Loading & Empty States */
.stc-loading-cell {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #64748b !important;
}

.stc-spinner {
    border: 3.5px solid #f1f5f9 !important;
    border-top: 3.5px solid #10b981 !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    animation: stcSpin 0.75s linear infinite !important;
    margin: 0 auto 12px auto !important;
}

@keyframes stcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 4. PAGINATION --- */
.stc-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 26px !important;
    padding: 10px 0 !important;
}

.stc-page-btn {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #1e293b !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.stc-page-btn:hover:not(:disabled) {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.stc-page-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
}

.stc-page-info {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    padding: 0 10px !important;
}

/* --- 5. RESPONSIVE MOBILE (CARD LAYOUT) --- */
@media screen and (max-width: 860px) {
    .stc-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    .stc-search-box, .stc-select-box {
        width: 100% !important;
        min-width: 100% !important;
    }
    .stc-select-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }
    .stc-meta-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .stc-table thead {
        display: none !important;
    }
    .stc-table tbody tr {
        display: block !important;
        padding: 18px !important;
        margin-bottom: 14px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    }
    .stc-table tbody td {
        display: block !important;
        padding: 6px 0 !important;
        border: none !important;
    }
    .stc-col-num {
        display: none !important;
    }
    .stc-actions-cell {
        flex-direction: column !important;
        align-items: stretch !important;
        margin-top: 14px !important;
    }
    .stc-btn-register, .stc-btn-contact {
        width: 100% !important;
        text-align: center !important;
    }
}
