/* styles.css */
.required-field {
    border: 2px solid red;
    background-color: #fdd;
}

.required-field:focus {
    background-color: #ffebeb;
}

.required-field::after {
    content: "*";
    color: red;
}

.text-danger {
    color: red;
}

th {
    white-space: nowrap; /* Prevents text from wrapping */
}

th div {
    display: flex;
    align-items: center; /* Keeps text and buttons aligned */
    gap: 5px; /* Adds space between text and icons */
}

th div a {
    font-size: 14px; /* Smaller icons */
}

/* Optional Custom Styles for Modal and Dropdowns */
.modal-content {
    border-radius: 8px;
}

select.form-select {
    border-radius: 4px;
}

button {
    border-radius: 8px;
}

h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ccc;
}

.section-container {
    margin-bottom: 50px; /* More space between sections */
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd; /* Adds a subtle separator */
}


/* optional */
.custom-dropzone.dragover {
    outline: 2px dashed #0d6efd;
}


.step-block {
    position: relative;
}

.step-title {
    font-weight: 700;
}

.step-meta .badge {
    font-weight: 500;
}

.step-divider {
    border: 0;
    border-top: 1px dashed var(--bs-border-color);
    opacity: .6;
}

/* Uniform thumbnail sizing */
.step-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.thumb-wrap {
    position: relative;
}

.step-thumb {
    width: 100%;
    aspect-ratio: 4 / 3; /* keeps consistent shape */
    object-fit: cover; /* clean crop */
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    cursor: zoom-in;
}

.thumb-caption {
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.zoom-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: .7rem;
}

