/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
.header {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.header h1 {
    color: #2a6fc9;
    text-align: center;
    margin-bottom: 10px;
}

.header .user-info {
    text-align: right;
    font-size: 14px;
    color: #666666;
}

/* Caixas com bordas arredondadas */
.card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.card-header {
    background-color: #2a6fc9;
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 10px;
    color: #333333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2a6fc9;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 111, 201, 0.1);
}

.form-control::placeholder {
    color: #999999;
}

/* Select customizado */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Botões com bordas arredondadas azuis */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2a6fc9;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.btn:hover {
    background-color: #1e5eb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 111, 201, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
}

/* Grid system */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
}

.col-2 {
    flex: 0 0 50%;
    padding: 10px;
}

.col-3 {
    flex: 0 0 33.333%;
    padding: 10px;
}

.col-4 {
    flex: 0 0 25%;
    padding: 10px;
}

/* Tabelas */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.table th {
    background-color: #2a6fc9;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
}

.table tr:hover {
    background-color: #f5f5f5;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* Navegação */
.nav {
    background-color: #ffffff;
    padding: 15px 0;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav li {
    margin: 0 10px;
}

.nav a {
    color: #333333;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background-color: #2a6fc9;
    color: white;
}

/* Checkbox e radio customizados */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #cccccc;
    transition: all 0.3s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: #2a6fc9;
    background-color: #f5f5f5;
}

.checkbox-item input,
.radio-item input {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Imagens de puxada */
.puxada-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.puxada-item {
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 2px solid #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.puxada-item:hover {
    border-color: #2a6fc9;
    background-color: #f5f5f5;
}

.puxada-item.selected {
    border-color: #2a6fc9;
    background-color: #2a6fc9;
    color: white;
}

.puxada-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col,
    .col-2,
    .col-3,
    .col-4 {
        flex: 1 1 100%;
    }
    
    .nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .nav li {
        margin: 5px 0;
    }
    
    .puxada-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
    
    .card-header {
        margin: -15px -15px 15px -15px;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .puxada-images {
        grid-template-columns: 1fr;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para campos de personalização */
.personalizacao-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.personalizacao-campos {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.personalizacao-campos.hidden {
    display: none;
}

.produto-manual-field.hidden {
    display: none;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* Melhorias nos campos de arquivo */
input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

/* Espaçamento para seções de personalização */
.produto-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

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

