/* Estilos personalizados para o sistema de devolução */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --border-radius: 0.375rem;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #d3cfd3!important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Navbar customizada */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Signature Pad */
.signature-pad-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.signature-pad {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    cursor: crosshair;
    touch-action: none;
    background-color: #fff;
}

.signature-pad:hover {
    border-color: var(--primary-color);
}

/* Botões customizados */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Formulários */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alertas */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    animation: slideIn 0.3s ease-in;
}

.alert-success {
    border-left-color: var(--success-color);
    background-color: #d1e7dd;
}

.alert-danger {
    border-left-color: var(--danger-color);
    background-color: #f8d7da;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: #fff3cd;
}

.alert-info {
    border-left-color: #0dcaf0;
    background-color: #d1ecf1;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .card-body {
        padding: 1.5rem;
    }

    .signature-pad {
        width: 100%;
        max-width: 350px;
        height: 150px;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .signature-pad {
        max-width: 280px;
        height: 120px;
    }

    .card-body {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

/* Estados de loading */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Termo de devolução */
.card-body[style*="overflow-y"] {
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
}

.card-body[style*="overflow-y"]::-webkit-scrollbar {
    width: 6px;
}

.card-body[style*="overflow-y"]::-webkit-scrollbar-track {
    background: transparent;
}

.card-body[style*="overflow-y"]::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

/* Ícones de status */
.status-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Melhorias de acessibilidade */
.btn:focus,
.form-control:focus {
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Transições suaves */
* {
    transition: color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}