/* Basic styling for Covered Classes */

.cc-wrapper {
    margin: 1em 0;
}

.cc-view-toggle {
    margin-bottom: 1em;
}

.cc-view-link {
    margin-right: 1em;
    text-decoration: none;
}

.cc-view-active {
    font-weight: bold;
    text-decoration: underline;
}

.cc-new-request {
    margin-bottom: 2em;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cc-new-request-form input[type="date"],
.cc-new-request-form input[type="time"],
.cc-new-request-form textarea,
.cc-new-request-form select {
    max-width: 100%;
}

.cc-button {
    display: inline-block;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f5f5f5;
}

.cc-button-primary {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
}

.cc-button-secondary {
    background: #fff;
}

.cc-list-view .cc-class-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.8em;
    margin-bottom: 0.8em;
}

.cc-class-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em;
}

.cc-class-datetime {
    min-width: 150px;
}

.cc-class-info {
    flex: 1;
    min-width: 200px;
}

.cc-class-actions {
    min-width: 180px;
    text-align: right;
}

.cc-badge {
    display: inline-block;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.8em;
}

.cc-badge-open {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.cc-badge-covered {
    background: #dcfce7;
    border: 1px solid #22c55e;
}

.cc-class-message {
    margin-top: 0.4em;
    font-size: 0.85em;
    color: #b91c1c;
}

.cc-loading {
    opacity: 0.6;
}

/* Calendar */
.cc-calendar-view {
    margin-top: 1em;
}

.cc-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.cc-calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.cc-calendar-table th,
.cc-calendar-table td {
    border: 1px solid #eee;
    text-align: center;
    padding: 0.5em;
}

.cc-calendar-table .cc-empty {
    background: #fafafa;
}

.cc-day-number {
    display: inline-block;
    min-width: 1.5em;
}

.cc-has-class .cc-day-number {
    font-weight: bold;
    text-decoration: underline;
}

.cc-calendar-note {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
}

/* Edit form */
.cc-edit-form {
    margin-top: 0.5em;
    padding-top: 0.5em;
    border-top: 1px dashed #ddd;
}

.cc-edit-form input[type="date"],
.cc-edit-form input[type="time"],
.cc-edit-form select,
.cc-edit-form textarea {
    max-width: 100%;
}

/* Optional note toggle link */
.cc-add-note-toggle {
    display: inline-block;
    margin-bottom: 0.4em;
    font-size: 0.85em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #2271b1;
}
