.btn-remove {
    color: #ef4444;
    transition: all 0.2s;
}

.btn-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.btn-save {
    color: #10b981;
    transition: all 0.2s;
}

.btn-save:hover {
    color: #059669;
    transform: scale(1.1);
}

.btn-add {
    color: #3b82f6;
    transition: all 0.2s;
}

.btn-add:hover {
    color: #2563eb;
    transform: scale(1.1);
}

.delivery-field {
    background-color: #374151;
    border: 2px solid #4b5563;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.delivery-field:focus {
    border-color: var(--primary-color);
    outline: none;
}

.delivery-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #e5e7eb;
    color: #cbd5e1;
}

.saved-entries {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    background-color: rgba(55, 65, 81, 0.5);
    background: rgba(55, 65, 81, 0.35);
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
}

.saved-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #374151;
    border-radius: 0.375rem;
    background: #3b4252;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65rem;
}

.saved-entry-info {
    flex-grow: 1;
}

.saved-entry-actions {
    display: flex;
    gap: 0.5rem;
}

.jornada-finalizada {
    background-color: #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #10b981;
    background: linear-gradient(180deg, rgba(55, 65, 81, 0.95) 0%, rgba(55, 65, 81, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left-width: 4px;
    border-left-color: #10b981;
    border-radius: 0.75rem;
}

.jornada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.jornada-horario {
    font-size: 0.875rem;
    color: #9ca3af;
}

.jornada-totais {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.jornada-total-item {
    text-align: center;
    padding: 0.5rem;
    background-color: #4b5563;
    border-radius: 0.25rem;
}

.jornada-total-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.jornada-total-value {
    font-weight: bold;
    font-size: 1.1rem;
}

.input-helper-text {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.45;
}

#new-journey-form,
#jornada-preview-container,
#finish-journey-form,
#resumo-jornada-container {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.98) 0%, rgba(31, 41, 55, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#diario [data-tab-content="diario"] h2,
#diario [data-tab-content="diario"] h3 {
    letter-spacing: 0.2px;
}

#resumo-jornada-container {
    padding: 1rem 1rem 1.25rem;
}

#jornada-preview-container {
    padding: 1rem 1rem 1.25rem;
}

.journey-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.journey-preview-subtitle {
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.45;
}

.journey-preview-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    white-space: nowrap;
}

.journey-preview-pill.status-ok {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.journey-preview-pill.status-warn {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.journey-preview-pill.status-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.journey-preview-feedback {
    margin-top: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    background: rgba(55, 65, 81, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #dbeafe;
}

.journey-preview-feedback.status-ok {
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.22);
}

.journey-preview-feedback.status-warn {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.22);
}

.journey-preview-feedback.status-error {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.22);
}

#resumo-jornada-container h2 {
    margin-bottom: 0.75rem;
}

#jornada-preview-container .grid,
#resumo-jornada-container .grid {
    gap: 0.5rem 1rem;
}

#jornada-preview-container p,
#resumo-jornada-container p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(55, 65, 81, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#jornada-preview-container p strong,
#resumo-jornada-container p strong {
    font-size: 0.925rem;
    color: #cbd5e1;
    font-weight: 600;
}

#jornada-preview-container p span,
#resumo-jornada-container p span {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

#resumo-jornada-container h3 {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
}

#resumo-jornada-container .text-blue-400 {
    color: #60a5fa !important;
}

#resumo-jornada-container .text-red-400 {
    color: #f87171 !important;
}

@media (max-width: 640px) {
    #new-journey-form .grid,
    #finish-journey-form .grid {
        gap: 0.75rem;
    }

    .journey-preview-header {
        flex-direction: column;
    }

    #resumo-jornada-container p {
        padding: 0.5rem 0.65rem;
    }
}
