:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #11998e;
    --info-color: #3498db;
    --warning-color: #f39c12;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Navbar */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.brand-title {
    letter-spacing: -0.5px;
}

.prestador-info {
    line-height: 1.3;
}

.text-white-75 {
    color: rgba(255,255,255,0.75) !important;
}

/* Cards */
.card {
    border-radius: 16px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Inputs */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* Botões de Serviços */
.btn-servico-frequente {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 8px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-servico-frequente:hover {
    border-color: #0dcaf0;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

.btn-servico-frequente:hover .servico-valor {
    color: rgba(255,255,255,0.9);
}

.servico-nome {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.servico-valor {
    font-size: 0.75rem;
    color: #0dcaf0;
    font-weight: 700;
}

/* Botões de Materiais no Modal */
.btn-material {
    background: white;
    border: 2px solid #198754;
    color: #198754;
    border-radius: 10px;
    padding: 12px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-material:hover {
    background: #198754;
    color: white;
    transform: translateY(-2px);
}

.btn-material small {
    font-weight: 400;
    opacity: 0.8;
}

/* Itens do Orçamento */
.item-row {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    animation: slideIn 0.3s ease;
}

.item-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.item-row.servico-item {
    border-left: 4px solid #0dcaf0;
}

.item-row.material-item {
    border-left: 4px solid #198754;
}

.item-row .btn-remover {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.item-row:hover .btn-remover {
    opacity: 1;
}

.border-dashed {
    border-style: dashed !important;
    border-width: 2px !important;
}

/* Autocomplete/Sugestões */
.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Checkbox Cards */
.card-checkbox {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid #e9ecef !important;
}

.card-checkbox:hover {
    border-color: #667eea !important;
    background: #f8f9fa;
}

.form-check-input:checked ~ .form-check-label .card-checkbox,
.card-checkbox:has(.form-check-input:checked) {
    border-color: #667eea !important;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.form-check-input {
    margin-top: 0.3rem;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .item-row .btn-remover {
        opacity: 1;
        top: 5px;
        right: 5px;
    }
    
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* Estilos PDF */
.pdf-container {
    font-family: 'Poppins', Arial, sans-serif;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    color: #333;
}

.pdf-header {
    border-bottom: 3px solid #667eea;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.pdf-section {
    margin-bottom: 25px;
}

.pdf-section-title {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #667eea;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.pdf-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.pdf-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.pdf-table tr:nth-child(even) {
    background: #f8f9fa;
}

.pdf-total-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.pdf-condicoes {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.pdf-validade {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    text-align: center;
    font-size: 13px;
    color: #856404;
}

.pdf-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
    font-size: 12px;
}

/* Modal */
.modal-content {
    border-radius: 16px;
}

.modal-header {
    border-radius: 16px 16px 0 0;
}