/* //////////////////////////////////////////////////////////////////
   LIST VIEW (Frontend)
   ////////////////////////////////////////////////////////////////// */

.lab-meetings-list {
    width: 100%;
    max-width: 700px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.meeting-date, .meeting-date-this-week {
    padding: 12px 20px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #e1e1e1;
    border-top: 1px solid #e1e1e1;
    color: #555;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meeting-date:first-child, .meeting-date-this-week:first-child { border-top: none; }

.meeting-date-this-week {
    color: #d96c8f; 
    background-color: #fff0f5;
}

.meeting-item {
    display: flex;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    align-items: baseline;
}

.meeting-item:last-child { border-bottom: none; }

.meeting-time {
    width: 90px;
    font-size: 0.9rem;
    color: #888;
    text-align: right;
    margin-right: 20px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums; 
}

.meeting-details { flex-grow: 1; }

/* Renamed from meeting-title to meeting-speaker */
.meeting-speaker {
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
}

.meeting-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .meeting-item { flex-direction: column; }
    .meeting-time {
        text-align: left;
        margin-bottom: 5px;
        width: 100%;
        color: #d96c8f;
        font-weight: 600;
        font-size: 0.8rem;
    }
}


/* //////////////////////////////////////////////////////////////////
   EDITOR UI (Admin Area)
   ////////////////////////////////////////////////////////////////// */

.slm-editor-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.slm-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

/* Add/Edit Form */
.slm-add-box {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Edit Mode Visual Cue */
.slm-mode-edit {
    border-left: 5px solid #ff9800;
    background: #fffbf5;
}
.slm-mode-edit h3 { color: #d35400; }

.slm-form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.slm-form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #333;
}

.slm-form-row input[type="text"],
.slm-form-row input[type="date"],
.slm-form-row textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.slm-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */
.slm-btn-save {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
.slm-btn-save:hover { background-color: #005177; }

.slm-btn-cancel {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f0f0f0;
    cursor: pointer;
}
.slm-btn-cancel:hover { background: #e0e0e0; color: #333; }

/* Admin Table */
.slm-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
}

.slm-admin-table th, 
.slm-admin-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.slm-admin-table th {
    background-color: #f8f8f8;
    font-weight: bold;
    color: #555;
}

.slm-admin-table tr:hover { background-color: #fafafa; }

.slm-actions-cell {
    white-space: nowrap;
}

.slm-btn-edit, .slm-btn-delete {
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 5px;
}

.slm-btn-edit {
    background-color: #ff9800; /* Orange for edit */
    color: white;
}
.slm-btn-edit:hover { background-color: #e68a00; }

.slm-btn-delete {
    background-color: #dc3545; /* Red for delete */
    color: white;
}
.slm-btn-delete:hover { background-color: #bd2130; }