
:root {
    --phoenix-primary: #004296;
    --phoenix-secondary: #49525D;
    --phoenix-success: #28A745;
    --phoenix-danger: #EC1F00;
    --phoenix-warning: #E5780B;
    --phoenix-info: #03C5DC;
    --phoenix-primary-rgb: 0, 66, 150;
    --phoenix-secondary-rgb: 73, 82, 93;
    --phoenix-success-rgb: 40, 167, 69;
    --phoenix-danger-rgb: 236, 31, 0;
    --phoenix-warning-rgb: 229, 120, 11;
    --phoenix-info-rgb: 3, 197, 220;
}

.form-control[readonly],
.form-control[readonly]:focus {
    color: var(--phoenix-quaternary-color) !important;
    background-color: rgba(var(--phoenix-gray-100-rgb), 0.7) !important;
    opacity: 1 !important;
}


.pre-wrap {
    white-space: pre-wrap !important;
}

.btn-primary {
    --phoenix-btn-bg: var(--phoenix-primary);
}

.btn-warning {
    --phoenix-btn-bg: var(--phoenix-warning);
}

.btn-secondary {
    --phoenix-btn-bg: var(--phoenix-secondary);
}

.btn-success {
    --phoenix-btn-bg: var(--phoenix-success);
}

.btn-danger {
    --phoenix-btn-bg: var(--phoenix-danger);
}

.btn-info {
    --phoenix-btn-bg: var(--phoenix-info);
}

.choices {
    margin-bottom: 0;
}

.form-select:disabled {
    color: var(--phoenix-quaternary-color);
    background-color: rgba(var(--phoenix-gray-100-rgb), 0.7);
    opacity: 1;
}

.form-floating > textarea.form-control {
    height: 150px;
}

/* Clase personalizada para el borde punteado */
.border-dotted {
    border-style: dotted !important;
    border-width: 2px; /* Un grosor ligeramente mayor para que se noten los puntos */
}

/* Efecto opcional para que cambie de color al pasar el mouse (hover) */
.card-create-prompt {
    transition: all 0.3s ease;
    cursor: pointer; /* Indica que se puede hacer clic */
}

.card-create-prompt:hover {
    border-color: #0d6efd !important; /* Color 'primary' de Bootstrap */
    background-color: #f8f9fa; /* Un gris muy tenue de fondo */
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
}


.upload-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e5ea;
    width: 100%;
    max-width: 860px;
    overflow: hidden;
}

/* ── Dropzone area ── */
#myDropzone {
    border-radius: 0;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-height: unset;
    padding: 0;
}

#myDropzone:hover,
#myDropzone.dz-drag-hover {
    border-color: #4a90d9;
    background: #f0f6ff;
}

#myDropzone .dz-message {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
    background: #fff;
    padding: 3rem 2rem;
}

#myDropzone .dz-message .upload-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

#myDropzone .dz-message .browse-link {
    color: #4a90d9;
    font-weight: 500;
}

#myDropzone .dz-message .allowed-types {
    font-size: 12px;
    color: #b0b7c3;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-pill {
    background: #f3f4f6;
    border: 1px solid #e2e5ea;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.3px;
}

/* Hide default dropzone previews */
#myDropzone .dz-preview {
    display: none !important;
}

/* ── Error toast ── */
#error-toast {
    display: none;
    margin: 12px 20px 0;
    padding: 10px 14px;
    background: #fff4f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
    align-items: center;
    gap: 8px;
}

#error-toast.visible {
    display: flex;
}

#error-toast svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

#error-toast .toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.5;
    font-size: 14px;
}

#error-toast .toast-close:hover {
    opacity: 1;
}

/* ── File list ── */
#file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#file-list li {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid #e9ebee;
    gap: 14px;
    animation: fadeSlideIn 0.25s ease forwards;
    opacity: 0;
    transform: translateY(6px);
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File type badge */
.file-badge {
    width: 44px;
    height: 52px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 3px;
    border: 1px solid #e2e5ea;
}

.file-badge svg {
    width: 20px;
    height: 20px;
}

.file-badge .ext-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 4px;
    border-radius: 2px;
}

.badge-pdf {
    background: #fff4f2;
    color: #e03131;
}

.badge-pdf .ext-label {
    background: #e03131;
    color: #fff;
}

.badge-img {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-img .ext-label {
    background: #16a34a;
    color: #fff;
}

/* File info */
.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1d23;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Remove button */
.btn-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.btn-remove:hover {
    color: #e03131;
    background: #fff4f2;
}

.btn-remove svg {
    width: 18px;
    height: 18px;
}

/* ── Footer ── */
.upload-footer {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid #e9ebee;
    justify-content: flex-end;
    gap: 10px;
    background: #fafbfc;
}

.upload-footer.visible {
    display: flex;
}

.btn-cancel {
    background: none;
    border: 1px solid #d0d5dd;
    color: #374151;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-cancel:hover {
    background: #f3f4f6;
}

.btn-upload {
    background: #4a90d9;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
}

.btn-upload:hover {
    background: #3578c5;
}

.btn-upload svg {
    width: 16px;
    height: 16px;
}

#file-list {
    max-height: 300px;
    overflow-y: auto;
}

.logo-text {
    font-size: 1.5rem;
}