.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Estilos para ReportarIncidencia - Mobile First */

.mobile-container {
    max-width: 100%;
    padding: 0.5rem 1rem;
    margin: 0 auto;
    font-family: system-ui, -apple-system, sans-serif;
}

.report-header {
    padding: 1rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eaeaea;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    margin-bottom: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Alertas con estilo toast */
.alert-toast {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-toast.success {
    background-color: #e7f7ed;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.alert-toast.error {
    background-color: #fdeaea;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

/* Selector de tipo de incidencia */
.incident-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.incident-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(33.333% - 0.5rem);
    height: 80px;
    border-radius: 8px;
    padding: 0.5rem;
    background: #f5f5f5;
    transition: all 0.2s ease;
    cursor: pointer;
}

.incident-type-option.selected {
    background: #e8f3ff;
    border: 2px solid #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.incident-type-option i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.incident-type-option.selected i {
    color: #1976d2;
}

.incident-type-option span {
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.2;
}

/* Ubicación GPS y mapa */
.location-display {
    border-radius: 12px;
    overflow: hidden;
    height: 150px;
    margin-top: 0.75rem;
    position: relative;
    border: 1px solid #eaeaea;
}

.location-display.has-location {
    border-color: #1976d2;
}

.location-map {
    width: 100%;
    height: 100%;
    background-color: #e9f1f6;
    position: relative;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-placeholder i {
    font-size: 2.5rem;
    color: #1976d2;
    z-index: 1;
}

.pin-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(25, 118, 210, 0.2);
    border-radius: 50%;
    animation: pin-pulse 1.5s infinite;
}

@keyframes pin-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.coordinates-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    text-align: center;
    padding: 1rem;
}

.location-empty i {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.location-empty p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    max-width: 200px;
}

.location-error {
    color: #d32f2f;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.btn-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1976d2;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.btn-location:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-location:not(:disabled):hover {
    background: #1565c0;
    transform: translateY(-1px);
}

/* Input de descripción con estilo modern */
.modern-textarea {
    border: none;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 1rem;
    resize: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.modern-textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
    outline: none;
}

.character-counter {
    font-size: 0.75rem;
    color: #777;
}

/* Subida de archivos mejorada */
.media-upload-area {
    margin-top: 0.5rem;
}

.upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background-color: #f9f9f9;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.upload-trigger:hover {
    background-color: #f0f0f0;
    border-color: #1976d2;
}

.upload-trigger i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.media-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.media-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f5f5f5;
}

.media-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-preview img, 
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.btn-remove-media {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #d32f2f;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.media-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botón enviar */
.submit-container {
    margin-top: 1rem;
    padding: 1rem 0;
}

.btn-send-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1976d2, #2196f3);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-send-report:hover:not(:disabled) {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.btn-send-report:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loader placeholder para estados de carga */
.placeholder-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    color: #777;
    font-size: 0.9rem;
}

/* Media queries para tablets y dispositivos más grandes */
@media (min-width: 576px) {
    .mobile-container {
        max-width: 540px;
        padding: 1rem;
    }
    
    .incident-type-option {
        height: 90px;
    }
    
    .location-display {
        height: 180px;
    }
}