/* --- FRONTEND STYLES --- */
.mcc-container {
    width: 100%;
    margin-bottom: 30px;
}
.mcc-nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.mcc-nav-bottom a {
    text-decoration: none;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
}
.mcc-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
}
.mcc-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #ddd;
}
.mcc-week-header td {
    background: #f9f9f9 !important;
    padding: 10px 5px !important;
    text-align: center;
    border-bottom: 2px solid #ddd !important;
    border-top: 3px solid #eee !important;
}
.mcc-header-day {
    display: block;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    color: #333;
}
.mcc-header-date {
    display: block;
    font-size: 15px;
    color: #666;
    margin-top: 2px;
}
.mcc-table td {
    border: 1px solid #eee;
    padding: 10px 8px;
    vertical-align: top;
    min-height: 120px;
    width: 14.28%;
}
.mcc-table td:nth-child(6), .mcc-table td:nth-child(7) {
    width: 9%;
}
.mcc-item {
    font-size: 11px;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    border-left: 5px solid #444;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.level-beginners {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.level-improvers {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}
.level-intermediate {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}
.level-intermediate-advanced {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    color: #0d47a1 !important;
}
.level-advanced {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}
.level-extra {
    background: #e2e3e5;
    border-color: #6c757d;
    color: #383d41;
}
.level-extra strong {
    color: #37393a;
}

/* --- ADMIN DASHBOARD STYLES --- */
.mcc-admin-wrap {
    max-width: 100%;
    margin-top: 20px;
    margin-right: 20px;
    box-sizing: border-box;
}
.mcc-admin-box, .mcc-admin-box2 {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
.mcc-admin-box.yellow {
    background: #fff8e1;
    border-color: #ffcc80;
}
.mcc-admin-box.blue {
    background: #e7f3ff;
    border-color: #2271b1;
}
.mcc-admin-box.gray {
    background: #f9f9f9;
    border-color: #ccd0d4;
}

/* Structura rândurilor de formular flexibile și full-width */
.mcc-form-inline, .mcc-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}

/* Grupuri de input + label */
.mcc-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
}
.mcc-input-group label {
    font-weight: 600;
    font-size: 12px;
    color: #444;
    text-align: left;
}
.mcc-input-group select, 
.mcc-input-group input[type="text"], 
.mcc-input-group input[type="date"], 
.mcc-input-group input[type="time"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 30px;
    box-sizing: border-box;
}

/* Distribuirea proporțională a lățimii pe rând */
.mcc-col-1 { flex: 1; min-width: 90px; }
.mcc-col-1-5 { flex: 1.5; min-width: 130px; }
.mcc-col-2 { flex: 2; min-width: 160px; }
.mcc-col-2-5 { flex: 2.5; min-width: 190px; }
.mcc-col-button { /*flex:*/ 1; min-width: 100px; }

/* Butoane în interiorul grid-ului */
.mcc-form-inline .button-primary, 
.mcc-form-inline .button,
.mcc-form-row .button-primary,
.mcc-form-row .button {
    width: 100% !important;
    height: 30px !important;
    line-height: 28px !important;
    padding: 0 12px !important;
    box-sizing: border-box;
}

/* Container de tag-uri cu sortare cronologică și scroller automat la depășirea a 4 rânduri */
.mcc-tags-container {
    margin-top: 15px;
    max-height: 115px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
.mcc-tag {
    display: inline-block;
    background: #e2e3e5;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 12px;
}
.mcc-tag.white {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.mcc-tag a {
    color: red;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}
.mcc-btn-delete {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
    margin-left: 10px !important;
}
.mcc-admin-header {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Separator vizual în secțiunea combinată */
.mcc-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
    width: 100%;
}

/* --- RESPONSIVE ADMIN (Mobile) --- */
@media screen and (max-width: 782px) {
    .mcc-form-inline, .mcc-form-row {
        display: block !important;
        width: 100% !important;
    }
    .mcc-input-group {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .mcc-input-group select, 
    .mcc-input-group input[type="text"], 
    .mcc-input-group input[type="submit"], 
    .mcc-input-group input[type="date"], 
    .mcc-input-group input[type="time"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 5px 0 !important;
        display: block !important;
        height: 44px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }
    .mcc-form-inline .button-primary,
    .mcc-form-inline .button {
        height: 44px !important;
        line-height: 42px !important;
    }
    .wp-list-table.fixed {
        display: block;
        width: 100%;
    }
    .wp-list-table thead {
        display: none;
    }
    .wp-list-table tbody, .wp-list-table tr, .wp-list-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .wp-list-table tr {
        margin-bottom: 20px;
        border: 1px solid #ccd0d4;
        background: #fff;
    }
    .wp-list-table td {
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 12px !important;
    }
    .wp-list-table td:last-child {
        border-bottom: none !important;
        background: #fcfcfc;
    }
    .wp-list-table td:before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #2271b1;
        font-size: 11px;
        text-transform: uppercase;
        margin-bottom: 4px;
    }
}