/* styles.css */
body {
    background-color: #f8f9fa;
    padding-top: 56px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-section {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
}

.bg-primary {
    background-color: #0d6efd !important;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

.filter-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.no-homeworks {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.class-group {
    margin-bottom: 25px;
}

.class-header {
    cursor: pointer;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
}

.class-header:hover {
    background-color: #dee2e6;
}

.class-header h3 {
    margin-bottom: 0;
}

.counter-badge {
    font-size: 1rem;
    background-color: #6c757d;
}

.copy-link {
    cursor: pointer;
    color: #0d6efd;
}

.copy-link:hover {
    text-decoration: underline;
}

.homework-details {
    display: none;
    padding-top: 10px;
}

@media print {
    /* Скрыть все элементы, кроме print-only */
    body * {
        visibility: hidden;
    }
    
    /* Показать только контейнер print-only и его содержимое */
    .print-only, .print-only * {
        visibility: visible;
    }
    
    /* Позиционирование print-only */
    .print-only {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    /* Дополнительные стили для печати */
    body {
        background-color: white !important;
        font-size: 12pt;
    }
    
    table {
        width: 100%;
        border-collapse: collapse;
    }
    
    th, td {
        border: 1px solid #ddd;
        padding: 6px;
        text-align: left;
    }
    
    th {
        background-color: #f2f2f2;
    }
}

/* Добавьте эти стили в конец файла */

.card-header {
    padding: 1rem 1.25rem;
}

.class-badge {
    font-size: 0.9rem;
    padding: 0.35em 0.65em;
    white-space: nowrap;
}

.card-header h5 {
    flex-grow: 1;
    margin-right: 1rem;
}

.card-header .d-flex {
    width: 100%;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.75rem 1.25rem;
}

/* Адаптивные стили */
@media (max-width: 576px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .class-badge {
        margin-top: 0.5rem;
        align-self: flex-start;
    }
}

/* Добавляем в конец файла */

.submission-card {
    border-left: 4px solid #750dfd;
    margin-bottom: 15px;
}

.grade-badge {
    font-size: 1rem;
    min-width: 40px;
    display: inline-block;
    text-align: center;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 5px;
}

.file-icon {
    margin-right: 10px;
    color: #6c757d;
}

.teacher-actions {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
}

.submissions-list {
    max-height: 500px;
    overflow-y: auto;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

@media (max-width: 768px) {
    .submissions-list {
        max-height: none;
    }
}

/* Print styles for book issues */
.print-issue {
    font-family: Arial, sans-serif;
    margin: 20px;
}

.print-issue .header {
    text-align: center;
    margin-bottom: 30px;
}

.print-issue .student-info {
    margin-bottom: 20px;
}

.print-issue .book-list {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.print-issue .book-list th,
.print-issue .book-list td {
    border: 1px solid #ddd;
    padding: 8px;
}

.print-issue .book-list th {
    background-color: #f2f2f2;
}

.print-issue .returned {
    color: green;
}

.print-issue .not-returned {
    color: red;
}

.print-issue .footer {
    margin-top: 50px;
    text-align: right;
}

.print-issue .signature-line {
    display: inline-block;
    width: 250px;
    border-bottom: 1px solid #000;
    margin-left: 10px;
}

/* Modal styles */
.modal-lg {
    max-width: 800px;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body .row > div {
        margin-bottom: 15px;
    }
    
    .card-footer .btn {
        margin-bottom: 5px;
        width: 100%;
    }
}