/* ============================================
   components.css - Shared components
   Auto-extracted from Twig templates
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.assignment-arrows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    gap: 15px;
    padding: 20px 0;
}

.arrow-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.arrow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.format-description p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
}

.form-control:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

.filter-close:hover {
    color: #e74c3c;
}

.assignment-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.nav-dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background-color: white;
            min-width: 200px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
            border-radius: 4px;
            z-index: 1000;
            margin-top: 5px;
        }

.pagination-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            background: #fff;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            color: #495057;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s;
            cursor: pointer;
        }

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: move;
    transition: all 0.2s;
}

.list-item {
    padding: 12px 16px;
    cursor: move;
    border-bottom: 1px solid #e9ecef;
    background: white;
    transition: all 0.2s;
    user-select: none;
    margin: 2px;
    border-radius: 4px;
}

.filter-modal.fade-out {
    opacity: 0;
}

.list-item:hover {
    background: linear-gradient(to right, #e7f3ff, #f0f7ff);
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.assignment-list::-webkit-scrollbar-track {
    background: #e2e5e9;
    border-radius: 0 6px 6px 0;
}

.format-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #7f8c8d;
}

.sort-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assignment-list::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

.pagination {
            display: flex;
            gap: 5px;
            align-items: center;
        }

.export-spinner-content {
    text-align: center;
    background: white;
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.export-spinner-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.arrow-btn {
    padding: 12px 20px;
    font-size: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    min-width: 60px;
    font-weight: 600;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.format-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.sort-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
}

.assignment-list::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.35);
    box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.filter-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.sort-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.pagination-per-page select {
            padding: 8px 12px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            background: #fff;
            cursor: pointer;
            font-size: 14px;
        }

.pagination-per-page select:focus {
            outline: none;
            border-color: #667eea;
        }

.pagination-info {
            color: #495057;
            font-size: 14px;
        }

.assignment-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,.55);
}

.export-spinner {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.assignment-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.list-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(2deg);
}

.pagination-btn:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }

.export-spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.spec-badge {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #495057;
    font-weight: 600;
}

.nav-dropdown-content a:hover {
            background-color: #f5f5f5;
        }

.sort-item-beschreibung {
    color: #6c757d;
    font-size: 14px;
}

.sort-handle {
    color: #6c757d;
    font-size: 20px;
    cursor: grab;
    user-select: none;
}

.export-spinner-subtext {
    font-size: 14px;
    color: #7f8c8d;
}

.format-specs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.filter-section {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
    }

.pagination-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            cursor: default;
        }

.format-badge-success {
    background: #d4edda;
    color: #155724;
}

.nav-dropdown-btn {
            background: none;
            border: none;
            color: var(--primary-blue, #0066b3);
            padding: 8px 12px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.export-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.pagination-per-page {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #495057;
        }

.filter-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.format-description li {
    padding: 3px 0;
    font-size: 13px;
}

.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.format-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.sort-item-separator {
    color: #adb5bd;
}

.nav-dropdown-btn:hover {
            color: #004080;
        }

.pagination-container {
            background: #fff;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

.modal-close:hover {
    color: #333;
}

.assignment-list.drag-over {
    background: #e3f2fd;
    border-color: #667eea;
    box-shadow: inset 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.format-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.nav-dropdown-content a.active {
            background-color: #e3f2fd;
            color: var(--primary-blue, #0066b3);
            font-weight: 500;
        }

.modal-body {
    padding: 20px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sort-item:active .sort-handle {
    cursor: grabbing;
}

.sort-item:hover {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.assignment-list {
    flex: 1;
    min-height: 0;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    overflow-y: scroll;
    background: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.35) #e2e5e9;
}

.pagination-dots {
            padding: 0 8px;
            color: #adb5bd;
        }

.nav-dropdown:hover .nav-dropdown-content {
            display: block;
        }

.spinner-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #3498db;
    border-radius: 50%;
    border-color: #3498db transparent transparent transparent;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.info-notice {
    background: #e7f3ff;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 14px;
}

.sort-item.dragging {
    opacity: 0.5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.format-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.filter-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.list-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    font-weight: 500;
}

.format-option:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.format-description {
    text-align: left;
    margin: 15px 0;
    font-size: 13px;
}

.nav-dropdown-content a {
            color: #333;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: background-color 0.2s;
        }

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.sort-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.format-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.filter-modal.fade-out .filter-modal-content {
    transform: scale(0.95);
    opacity: 0;
}

.filter-modal.active {
    display: flex;
    opacity: 1;
}

.export-spinner-text {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.modal-content-large {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.nav-dropdown {
            position: relative;
            display: inline-block;
        }

.filter-modal.active .filter-modal-content {
    transform: scale(1);
}

.sort-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

