/* Custom styles for Enhanced Forms Clone */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Card hover effect */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Question card styling */
.question-card .drag-handle {
    cursor: move;
    padding: 0.5rem;
}

.section-card {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
}

/* Rating stars */
.rating {
    display: flex;
    gap: 0.5rem;
}

.rating .star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ccc;
}

.rating .star:hover,
.rating .star.active {
    color: #ffc107;
}

.rating .star:hover ~ .star,
.rating .star.active ~ .star {
    color: #ccc;
}

/* Toast notification styling */
.toast-container {
    z-index: 1100;
}

/* Form preview styling */
#preview-tab-pane .card-header {
    background-color: #f8f9fa;
}

/* Image upload preview */
.image-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
}

/* Correct answer indicator */
.correct-answer {
    color: #198754;
    font-weight: bold;
}

/* Branching logic visualization */
.branching-arrow {
    color: #6c757d;
    font-size: 1.2rem;
}

/* Likert scale styling */
.likert-scale td {
    text-align: center;
}

.likert-scale th {
    text-align: center;
    font-weight: normal;
}

/* Word cloud styling */
#word-cloud {
    width: 100%;
    height: 300px;
}

/* File upload styling */
.file-upload-preview {
    border: 1px dashed #dee2e6;
    padding: 1rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header .ms-auto {
        margin-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
    }

    .input-group-text {
        font-size: 0.8rem;
    }
}

/* Shuffle animation */
@keyframes shuffle {
    0% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    75% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.shuffle-animation {
    animation: shuffle 0.5s ease;
}

/* Correct/incorrect feedback */
.feedback-correct {
    color: #198754;
    font-weight: bold;
}

.feedback-incorrect {
    color: #dc3545;
    font-weight: bold;
}

/* Timer styling */
.timer-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

/* Branching visualization */
.branching-diagram {
    overflow-x: auto;
    margin: 1rem 0;
}

.branching-node {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin: 0.25rem;
    display: inline-block;
}

.branching-arrow {
    margin: 0 0.5rem;
}
