
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

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

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

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #333;
    margin-top: 10px;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}

#register-form {
    margin-top: 20px;
}

.main-content {
    display: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#user-greeting {
    font-weight: 500;
}

.logout-btn {
    background-color: #f44336;
    width: auto;
    padding: 8px 15px;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

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

.section h2 {
    margin-top: 0;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

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

th {
    background-color: #f2f2f2;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    width: auto;
    font-size: 14px;
}

.edit-btn {
    background-color: #2196F3;
}

.edit-btn:hover {
    background-color: #0b7dda;
}

.delete-btn {
    background-color: #f44336;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 15px;
}

.form-col {
    flex: 1;
    min-width: 200px;
}

.hidden {
    display: none;
}

.admin-only {
    border-left: 4px solid #4CAF50;
    padding-left: 10px;
}

#login-error, #register-error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    color: white;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.success {
    background-color: #4CAF50;
}

.error {
    background-color: #f44336;
}
/* Estilo para campos readonly */
input[readonly] {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Ícones (opcional) */
.icon-plus:before {
    content: "+";
    margin-right: 5px;
}
/* Destacar coluna de mesa */
#pedidos-table td:nth-child(2) {
    font-weight: bold;
    color: #2F3BA2;
}

/* Responsividade para mobile */
@media (max-width: 600px) {
    #pedidos-table th:nth-child(1), 
    #pedidos-table td:nth-child(1) {
        display: none;
    }
}
#pedido-id {
    background-color: #f5f5f5;
    cursor: not-allowed;
    font-style: italic;
}