/* CSS cho giao diện Frontend (Shortcodes) */
.mts-frontend-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px auto;
    max-width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fcfcfc;
}

/* Tabs */
.mts-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 20px;
}

.mts-tab-link {
    padding: 10px 15px;
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    background: #f0f0f1;
    transition: all 0.2s ease-in-out;
}

.mts-tab-link:hover {
    background: #e0e0e1;
    color: #005a9c;
}

.mts-tab-link.active {
    background: #fff;
    border-color: #ddd;
    border-bottom: 2px solid #fff;
    color: #333;
    margin-bottom: -2px;
}

.mts-tab-pane {
    display: none;
}

.mts-tab-pane.active {
    display: block;
    animation: mts-fade-in 0.3s ease;
}

@keyframes mts-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Forms */
.mts-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.mts-form-group {
    display: flex;
    flex-direction: column;
}

.mts-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.mts-form-group input[type="text"],
.mts-form-group input[type="number"],
.mts-form-group input[type="date"],
.mts-form-group textarea,
.mts-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Quan trọng cho responsive */
}

.mts-form-group textarea {
    min-height: 120px;
}

.mts-button {
    background-color: #0073aa;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.mts-button:hover {
    background-color: #005a9c;
}

/* Responsive Table */
.mts-table-wrapper {
    overflow-x: auto;
}

.mts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 5px;
    overflow: hidden; /* Cho border-radius */
    border: 1px solid #e0e0e0;
}

.mts-table th,
.mts-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.mts-table th {
    background-color: #f4f4f4;
    font-weight: 600;
    color: #333;
}

.mts-table tbody tr:last-child td {
    border-bottom: none;
}

.mts-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Responsive Grid Layout for Management */
.mts-management-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .mts-management-layout {
        grid-template-columns: 1fr;
    }
}

/* Schedule View */
.mts-schedule-view {
    margin-top: 20px;
}

.mts-schedule-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #0073aa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.mts-schedule-item-time {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.mts-schedule-item p {
    margin: 5px 0 0;
    color: #555;
}