.filters-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.filter-form {
    width: 100%;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}
.filter-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 200px;
}
.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}
.btn-primary {
    background: #007bff;
    color: white;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}
.classes-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}
.class-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 30px;
    width: calc(100% - 60px);
    max-width: none;
    box-sizing: border-box;
}

.class-card.user-signed-up {
    border: 2px solid #28a745;
    background: #f8fff9;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}
.class-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.class-info {
    flex: 1;
    min-width: 0;
}
.class-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 15%;
    min-width: 150px;
}
.class-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.class-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
    width: 50%;
    margin: 0 auto;
}
.class-action-btn-edit {
    background: #007bff;
    color: white;
}
.class-action-btn-edit:hover {
    background: #0056b3;
    transform: scale(1.05);
}
.class-action-btn-delete {
    background: #dc3545;
    color: white;
}
.class-action-btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}
.class-action-btn-lessons {
    background: #28a745;
    color: white;
}
.class-action-btn-lessons:hover {
    background: #218838;
    transform: scale(1.05);
}
.class-action-btn-view {
    background: #6c757d;
    color: white;
}
.class-action-btn-view:hover {
    background: #545b62;
    transform: scale(1.05);
}

.class-action-btn-signup {
    background: #28a745;
    color: white;
    width: 50%;
    margin: 0 auto;
    display: inline-block;
}

.class-action-btn-signup:hover {
    background: #218838;
    transform: scale(1.05);
}

.class-action-btn-signup:disabled {
    background: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.class-action-btn-signup:disabled:hover {
    background: #6c757d;
    transform: none;
}

.class-action-btn-extra-points {
    background: #6c757d;
    color: white;
    width: 50%;
    margin: 0 auto;
    display: inline-block;
}

.class-action-btn-extra-points:hover {
    background: #545b62;
    transform: scale(1.05);
}

.class-action-btn-extra-points:disabled {
    background: #545b62;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.class-action-btn-extra-points:disabled:hover {
    background: #545b62;
    transform: none;
}

.class-action-btn-unsignup {
    background: #dc3545;
    color: white;
    width: 50%;
    margin: 0 auto;
    display: inline-block;
}

.class-action-btn-unsignup:hover {
    background: #c82333;
    transform: scale(1.05);
}

.signup-status {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 5px;
}

.signup-status.full {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.signup-status.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.signup-warning {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 5px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.students-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.students-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.students-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.students-tabs {
    display: flex;
    gap: 10px;
}
.student-tab {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.student-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.student-tab:hover {
    background: #e9ecef;
    color: #333;
}
.student-tab.active:hover {
    background: #0056b3;
    color: white;
}
.lesson-tab {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.lesson-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.lesson-tab:hover {
    background: #e9ecef;
    color: #333;
}
.lesson-tab.active:hover {
    background: #0056b3;
    color: white;
}
.students-container {
    display: none;
    margin-top: 10px;
}
.students-container.show {
    display: block;
}
.student-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.student-info {
    flex: 1;
}
.student-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}
.student-details {
    color: #666;
    font-size: 12px;
}
.student-actions {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}
.student-action-btn {
    padding: 4px 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    min-width: 24px;
    text-align: center;
}
.student-action-btn-view {
    background: #6c757d;
    color: white;
}
.student-action-btn-view:hover {
    background: #545b62;
    transform: scale(1.05);
}
.student-action-btn-remove {
    background: #dc3545;
    color: white;
}
.student-action-btn-remove:hover {
    background: #c82333;
    transform: scale(1.05);
}
.no-students {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px;
    font-size: 13px;
}
.class-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}
.class-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.class-teacher {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}
.class-details {
    margin: 15px 0;
}
.detail-item {
    display: flex;
    flex-direction: column;
    margin: 8px 0;
    font-size: 14px;
    gap: 4px;
}

.detail-item.inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.detail-item.inline .detail-label + * {
    color: #333;
    font-size: 14px;
}
.detail-label {
    font-weight: bold;
    color: #555;
}
.detail-value {
    color: #333;
}
.detail-value-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail-value-item {
    padding: 2px 0;
}
.detail-value-expandable {
    position: relative;
}
.detail-value-expandable.collapsed .detail-value-item:nth-child(n+6) {
    display: none;
}
.expand-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-top: 5px;
    transition: all 0.2s;
}
.expand-btn:hover {
    background: #e9ecef;
    color: #333;
}
.class-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}
.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.lessons-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.lessons-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.toggle-lessons-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.toggle-lessons-btn:hover {
    background: #e9ecef;
    color: #333;
}
.lessons-container {
    display: none;
    margin-top: 10px;
}
.lessons-container.show {
    display: block;
}
.lesson-item {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lesson-info {
    flex: 1;
}
.lesson-actions {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}
.action-btn {
    padding: 6px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    min-width: 32px;
    text-align: center;
}
.action-btn-edit {
    background: #007bff;
    color: white;
}
.action-btn-edit:hover {
    background: #0056b3;
    transform: scale(1.05);
}
.action-btn-delete {
    background: #dc3545;
    color: white;
}
.action-btn-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}
.action-btn-attendance {
    background: #28a745;
    color: white;
    min-width: 50px;
}
.action-btn-attendance:hover {
    background: #218838;
    transform: scale(1.05);
}
.action-btn-change-teacher {
    background: #6c757d;
    color: white;
    min-width: 50px;
}
.action-btn-change-teacher:hover {
    background: #545b62;
    transform: scale(1.05);
}
.action-btn-view {
    background: #6c757d;
    color: white;
}
.action-btn-view:hover {
    background: #545b62;
    transform: scale(1.05);
}
.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.lesson-date {
    font-weight: bold;
    color: #333;
}
.lesson-time {
    color: #666;
    font-size: 12px;
}
.lesson-status {
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}
.lesson-status.active {
    background: #d4edda;
    color: #155724;
}
.lesson-status.inactive {
    background: #f8d7da;
    color: #721c24;
}
.lesson-details {
    color: #666;
    font-size: 12px;
}
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}
.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.no-lessons {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px;
    font-size: 13px;
}

.signup-requirements {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #856404;
}

.requirements-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.requirements-text {
    line-height: 1.4;
    flex: 1;
}