/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards e estatísticas */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ff184e;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Tabelas responsivas */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Cards de conteúdo */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #FF184E;
    padding-bottom: 10px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #ff184e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e61545;
}

.btn-primary.active {
    background-color: #cc123d;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Grid responsivo */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Alertas e mensagens */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mensagens de alerta */
.mensagem {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .stat-card h3 {
        font-size: 1.5em;
    }
    
    .table {
        font-size: 14px;
    }

    .form-control {
        font-size: 14px;
    }
}

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

.card, .stat-card {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos específicos para formulários */
form {
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para selects */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

/* Estilos para inputs numéricos */
input[type="number"].form-control {
    -moz-appearance: textfield;
}

input[type="number"].form-control::-webkit-outer-spin-button,
input[type="number"].form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

header {
    background-color: #ff184e;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8em;
    margin: 0;
    padding-right: 50px; /* Espaço para o botão do menu */
    line-height: 1.2;
}

/* Menu responsivo */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 1.2em;
        padding-right: 40px;
        line-height: 1.4;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        padding: 5px;
    }

    header {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ff184e;
        padding: 20px;
        border-radius: 0 0 8px 8px;
        z-index: 1000;
    }

    nav.active {
        display: flex;
        flex-direction: column;
    }

    nav a {
        margin: 5px 0;
        text-align: center;
    }

    .container {
        padding: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .card {
        padding: 15px;
    }
}

/* Estilos para a página de vendas */
.produto-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.produto-item select {
    flex: 1;
}

.produto-item input[type="number"] {
    width: 80px;
}

.btn-remover {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-remover:hover {
    background-color: #c82333;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: bold;
    color: #666;
}

.info-item span {
    font-size: 1.1em;
}

.acoes {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 768px) {
    .produto-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .produto-item input[type="number"] {
        width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para a página de vendas */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-container th,
.table-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table-container th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-container tr:hover {
    background-color: #f5f5f5;
}

/* Botões */
.btn-primario {
    background-color: #ff184e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secundario {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-perigo {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primario:hover {
    background-color: #e61545;
}

.btn-secundario:hover {
    background-color: #5a6268;
}

.btn-perigo:hover {
    background-color: #c82333;
}

/* Formulários */
.form-group select,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #ff184e;
    box-shadow: 0 0 0 2px rgba(255, 24, 78, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .table-container {
        margin: 0 -20px;
    }
    
    .table-container table {
        font-size: 14px;
    }
    
    .table-container th,
    .table-container td {
        padding: 8px 10px;
    }
    
    .btn-primario,
    .btn-secundario,
    .btn-perigo {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
} 