/* Training Calendar Plugin Styling */
.tc-form-wrapper {
    max-width: 650px;
    margin: 25px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
}

.tc-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.tc-form-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.tc-form-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* Excel Toolbar & Action Buttons */
.tc-excel-bar {
    margin-bottom: 22px;
}

.tc-excel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.tc-excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tc-excel-btn:hover {
    background-color: #0a2540;
    color: #ffffff !important;
    border-color: #0a2540;
    transform: translateY(-1px);
}

.tc-excel-btn-export:hover {
    background-color: #166534;
    border-color: #166534;
    color: #ffffff !important;
}

.tc-excel-btn-template:hover {
    background-color: #475569;
    border-color: #475569;
    color: #ffffff !important;
}

/* Import Box & Panel */
.tc-import-panel {
    background: #f1f5f9;
    border: 1.5px dashed #94a3b8;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.tc-import-box label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 10px;
}

.tc-import-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tc-import-input-wrap input[type="file"] {
    flex: 1;
    font-size: 13px;
    background: #ffffff;
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.tc-btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background-color: #0a2540;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tc-btn-upload:hover:not(:disabled) {
    background-color: #1d4ed8;
}

.tc-btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tc-import-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}


.tc-form-group {
    margin-bottom: 20px;
}

.tc-form-row {
    display: flex;
    gap: 16px;
}

.tc-form-row .tc-form-group {
    flex: 1;
}

.tc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
}

.tc-form-group label span.required {
    color: #ef4444;
}

.tc-form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.25s ease-in-out;
    box-sizing: border-box;
    outline: none;
}

.tc-form-control:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tc-input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.tc-input-prefix {
    position: absolute;
    left: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
}

.tc-form-control.with-prefix {
    padding-left: 45px;
}

.tc-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tc-btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.tc-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tc-spinner {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: tc-spin 0.8s ease-in-out infinite;
}

@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

.tc-alert {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.tc-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.tc-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 600px) {
    .tc-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===================================================
   TRAINING SCHEDULE PUBLIC TABLE (MATCHING SCREENSHOT)
   =================================================== */

.tc-schedule-container {
    max-width: 1200px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

/* Disable/Hide Table of Contents (TOC) plugins */
#ez-toc-container,
.ez-toc-container,
.ez-toc-v2_0_48,
.table-of-contents,
.toc-container {
    display: none !important;
}

/* Month Filter Buttons / Tabs */
.tc-months-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tc-month-btn {
    background-color: #12284c;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.tc-month-btn:hover {
    background-color: #1e40af;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tc-month-btn.active {
    background-color: #1d4ed8;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.45);
}

/* Search Box Bar (Navy Blue Theme) */
.tc-search-wrapper {
    margin: 0 0 25px 0;
    max-width: 580px;
}

.tc-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #0a2540;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(10, 37, 64, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.15);
}

.tc-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tc-search-input::placeholder {
    color: #94a3b8;
    font-size: 13.5px;
}

.tc-search-clear-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    padding: 0 10px;
    cursor: pointer;
    line-height: 1;
    display: none;
}

.tc-search-clear-btn:hover {
    color: #ef4444;
}

.tc-search-btn {
    background-color: #0a2540;
    color: #ffffff !important;
    border: none;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.tc-search-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
}

.tc-no-search-results {
    display: none;
    text-align: center;
    padding: 35px 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 15px;
    margin: 20px 0;
}

/* Month Heading */
.tc-month-heading {
    font-size: 24px;
    font-weight: 800;
    color: #0a2540;
    margin: 30px 0 16px 0;
    display: flex;
    align-items: center;
}

/* Table Design */
.tc-table-wrapper {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.tc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.tc-schedule-table th {
    background-color: #0a2540 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 16px;
    letter-spacing: 0.3px;
    border: none !important;
}

.tc-schedule-table td {
    padding: 16px 16px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
    color: #334155;
}

.tc-schedule-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.tc-schedule-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Column Specific Styles */
.tc-schedule-table .tc-col-category {
    font-weight: 500;
    color: #475569;
    width: 18%;
}

/* Category Filter Button */
.tc-category-filter-trigger {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 8px;
    margin: -3px -8px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    display: inline-block;
    transition: all 0.2s ease;
}

.tc-category-filter-trigger:hover {
    background-color: #e2e8f0;
    color: #0a2540;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.tc-category-filter-trigger.is-active-filter {
    background-color: #0a2540;
    color: #ffffff !important;
    border-color: #0a2540;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(10, 37, 64, 0.2);
}

.tc-schedule-table .tc-col-title {
    font-weight: 600;
    color: #0f172a;
    width: 28%;
}

.tc-title-text {
    font-weight: 700;
    color: #0f172a;
}

/* Title Link to Syllabus */
.tc-title-link {
    color: #0a2540;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.tc-title-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.tc-external-icon {
    flex-shrink: 0;
    opacity: 0.6;
    stroke: currentColor;
    vertical-align: middle;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tc-title-link:hover .tc-external-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.tc-schedule-table .tc-col-instructor {
    font-weight: 500;
    color: #475569;
    width: 17%;
}

.tc-schedule-table .tc-col-date {
    font-weight: 500;
    white-space: nowrap;
    width: 15%;
}

.tc-schedule-table .tc-col-venue {
    font-weight: 500;
    width: 11%;
}

.tc-schedule-table .tc-col-price {
    font-weight: 600;
    color: #0a2540;
    white-space: nowrap;
    width: 11%;
}

/* Empty State */
.tc-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 15px;
}

/* ========================================================
   WHATSAPP ORDER MODAL POPUP
   ======================================================== */
body.tc-modal-open {
    overflow: hidden !important;
}

.tc-wa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}

.tc-wa-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.tc-wa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.tc-wa-modal-dialog {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.tc-wa-modal.is-open .tc-wa-modal-dialog {
    transform: scale(1) translateY(0);
}

.tc-wa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tc-wa-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tc-wa-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    flex-shrink: 0;
}

.tc-wa-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.tc-wa-modal-subtitle {
    margin: 3px 0 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.35;
}

.tc-wa-modal-close {
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    padding: 0;
}

.tc-wa-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.tc-wa-form {
    padding: 20px 24px 24px;
}

.tc-wa-form-group {
    margin-bottom: 14px;
}

.tc-wa-form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.tc-wa-badge-auto {
    font-size: 10px;
    font-weight: 700;
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.tc-wa-required {
    color: #ef4444;
    margin-left: 2px;
}

.tc-wa-input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

.tc-wa-input:focus {
    border-color: #25D366 !important;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2) !important;
}

.tc-wa-input.tc-wa-readonly {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0a2540 !important;
    font-weight: 600 !important;
    cursor: default !important;
}

.tc-wa-input.has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.tc-wa-field-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    font-weight: 500;
}

.tc-wa-form-row {
    display: flex;
    gap: 12px;
}

.tc-wa-col {
    flex: 1;
}

.tc-wa-form-footer {
    margin-top: 20px;
}

.tc-wa-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.tc-wa-btn-submit:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0d7064 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

.tc-wa-btn-submit:active {
    transform: translateY(0);
}

.tc-wa-privacy-note {
    text-align: center;
    font-size: 11.5px;
    color: #64748b;
    margin: 10px 0 0;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .tc-wa-modal {
        padding: 10px;
    }
    .tc-wa-modal-header {
        padding: 16px 18px 12px;
    }
    .tc-wa-form {
        padding: 16px 18px 20px;
    }
    .tc-wa-form-row {
        flex-direction: column;
        gap: 0;
    }
}


