/* Redirect Section Styles */
.redirect-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.redirect-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.redirect-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.redirect-card p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.redirect-actions {
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.redirect-features {
    text-align: left;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.redirect-features h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.redirect-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.redirect-features li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 1rem;
}

.redirect-features li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Test Creation Styles */
.test-creation-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.test-basic-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.test-questions-selection {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.question-filter-section {
    margin-bottom: 1.5rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.filter-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.filter-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.filter-content {
    display: none;
}

.filter-content.active {
    display: block;
}

.test-questions-container {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.test-questions-container .questions-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-questions-container .questions-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1rem;
}

.selected-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.test-questions-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.test-question-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: white;
    transition: all 0.3s ease;
    gap: 1rem;
}

.test-question-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.test-question-item.selected {
    background: #e8f5e8;
    border-color: #28a745;
}

.test-question-checkbox {
    margin-right: 0.75rem;
}

.test-question-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.test-question-id {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 2rem;
    text-align: center;
}

.test-question-text {
    flex: 1;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
    max-height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.test-question-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.test-question-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.test-question-badge.type {
    background: #e3f2fd;
    color: #1976d2;
}

.test-question-badge.difficulty-easy {
    background: #e8f5e8;
    color: #2e7d32;
}

.test-question-badge.difficulty-medium {
    background: #fff3e0;
    color: #f57c00;
}

.test-question-badge.difficulty-hard {
    background: #ffebee;
    color: #d32f2f;
}

.test-question-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.test-question-actions .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-question-actions .btn-primary {
    background: #007bff;
    color: white;
}

.test-question-actions .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.selected-questions-section {
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.selected-questions-section h4 {
    background: #e8f5e8;
    color: #155724;
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #c3e6cb;
    border-radius: 6px 6px 0 0;
    font-size: 1rem;
}

.selected-questions-list {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.selected-question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.selected-question-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.selected-question-id {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 1.5rem;
    text-align: center;
}

.selected-question-text {
    font-size: 0.85rem;
    color: #495057;
    flex: 1;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-question-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-question-btn:hover {
    background: #c82333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.no-selection {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-selection p {
    margin: 0;
    font-size: 0.9rem;
}

/* Test Management Styles */
.test-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.test-list-section, .test-detail-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e9ecef;
}

.section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.test-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.test-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.test-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.test-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
}

.test-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.test-description {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.8;
    line-height: 1.4;
}

.test-detail {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.test-detail-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.test-detail-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.test-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.test-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.test-detail-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.test-questions {
    margin-top: 1.5rem;
}

.test-questions h4 {
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.test-question-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.test-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.test-question-id {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.test-question-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.test-question-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    margin-bottom: 0.75rem;
}

.test-question-options {
    font-size: 0.9rem;
    color: #495057;
}

/* Test Question Selection */
.test-question-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.test-question-item:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.test-question-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.test-question-item input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
}

.test-question-item strong {
    color: #667eea;
    font-weight: 600;
}

.test-question-item small {
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
}

/* Mobile Responsive for Test Management */
@media (max-width: 768px) {
    .test-management {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .test-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .test-question-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
}
