/* Styling khusus untuk halaman bank soal teori */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Nomor Registrasi Styling */
.nomor-registrasi-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nomor-registrasi-input {
    flex: 1;
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.nomor-registrasi-info {
    position: relative;
    cursor: pointer;
}

.nomor-registrasi-info .fa-info-circle {
    color: #6c757d;
    font-size: 18px;
}

.nomor-registrasi-info .info-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 300px;
    z-index: 1000;
}

.nomor-registrasi-info:hover .info-content {
    display: block;
}

.format-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 12px;
}

.sequence-info {
    margin-top: 8px;
    padding: 5px;
    background: #e9ecef;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Text Editor Styling */
.text-editor {
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.text-editor .toolbar {
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.text-editor .toolbar button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.text-editor .toolbar button:hover {
    background: #e9ecef;
}

.text-editor .toolbar select {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
}

.text-editor .rich-text {
    min-height: 150px;
    padding: 15px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.text-editor [contenteditable="true"] {
    outline: none;
}

.text-editor [contenteditable="true"]:focus {
    outline: none;
}

/* Department Select Styling */
.department-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-select {
    flex: 1;
}

.department-info {
    color: #6c757d;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
}

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

.modal-header h3 {
    margin: 0;
    flex: 1;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

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

.upload-area {
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed #ddd;
    margin: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #4CAF50;
}

.upload-area .fa-cloud-upload-alt {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 15px;
    display: none;
}

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

.file-input {
    display: none;
}

/* Table Styling */
.soal-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Button Styling */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-edit {
    background-color: #ffc107;
    color: black;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Alert Styling */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .nomor-registrasi-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .department-select-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}