* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
    border: 1px solid #d4af37;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
}

h1 {
    text-align: center;
    color: #d4af37;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
}

h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

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

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    background: #3d3d3d;
    border: 1px solid #d4af37;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
}

.radio-label:hover {
    background: #4d4d4d;
}

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

.radio-label span {
    color: #ffffff;
    font-weight: 500;
}

.radio-label input[type="radio"]:checked + span {
    color: #d4af37;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-weight: 500;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #3d3d3d;
    color: #ffffff;
}

input:focus, select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: #4d4d4d;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

button:active {
    transform: translateY(1px);
}

.preco-display {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    color: #d4af37;
    margin: 20px 0;
}

.success-message {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd700;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #d4af37;
}

.error-message {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #dc2626;
}

.hidden {
    display: none;
}

.admin-link {
    text-align: center;
    margin-top: 20px;
}

.admin-link a {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
}

.admin-link a:hover {
    text-decoration: underline;
}

.pedido-item {
    background: #3d3d3d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #d4af37;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pedido-header strong {
    color: #d4af37;
    font-size: 16px;
}

.btn-view {
    background: transparent;
    border: 1px solid #d4af37;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view:hover {
    background: #d4af37;
}

.btn-view svg {
    width: 20px;
    height: 20px;
    stroke: #d4af37;
    transition: stroke 0.2s;
}

.btn-view:hover svg {
    stroke: #1a1a1a;
}

.pedido-body {
    color: #ffffff;
}

.pedido-body p {
    margin: 5px 0;
    font-size: 14px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background: #2d2d2d;
    border-radius: 12px;
    border: 1px solid #d4af37;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: #d4af37;
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #d4af37;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffd700;
}

.modal-body {
    padding: 20px;
}

.detalhes-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #3d3d3d;
    border-radius: 6px;
    border: 1px solid #4d4d4d;
    color: #ffffff;
    font-size: 14px;
}

.detalhes-item strong {
    color: #d4af37;
    display: inline-block;
    min-width: 100px;
}

.admin-container {
    max-width: 1200px;
}

.pedidos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.ingrediente-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.ingrediente-icone {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingrediente-icone svg {
    width: 24px;
    height: 24px;
    stroke: #555;
}

.ingrediente-nome {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.ingrediente-preco {
    color: #3498db;
    font-weight: 600;
    margin-right: 15px;
    font-size: 14px;
}

.ingrediente-controles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-menos, .btn-mais {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    background: #e9ecef;
    color: #555;
    border: 1px solid #dee2e6;
}

.btn-menos:hover, .btn-mais:hover {
    background: #dee2e6;
}

.quantidade {
    font-weight: 600;
    font-size: 16px;
    min-width: 24px;
    text-align: center;
    color: #333;
}

.nota-fiscal {
    background: #3d3d3d;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.nota-header {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.nota-header h3 {
    color: #d4af37;
    margin-bottom: 10px;
    font-size: 18px;
}

.nota-header p {
    color: #ffffff;
    margin: 5px 0;
    font-size: 13px;
}

.nota-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.nota-table th,
.nota-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #d4af37;
    font-size: 13px;
    color: #ffffff;
}

.nota-table th {
    background: #4d4d4d;
    font-weight: 600;
    color: #d4af37;
}

.nota-table tfoot tr {
    background: #4d4d4d;
}

.nota-table tfoot td {
    font-weight: 600;
    color: #d4af37;
}

.nota-info {
    border-top: 1px solid #d4af37;
    padding-top: 15px;
}

.nota-info p {
    margin: 8px 0;
    color: #ffffff;
    font-size: 13px;
}

.admin-ingredientes {
    margin-top: 30px;
}

.ingrediente-admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.ingrediente-admin-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingrediente-admin-info svg {
    width: 24px;
    height: 24px;
    stroke: #555;
}

.ingrediente-admin-info span {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.ingrediente-admin-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fafafa;
    color: #333;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
    width: auto;
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.add-ingrediente-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.add-ingrediente-form input {
    margin-bottom: 10px;
}

.payment-animation {
    text-align: center;
    padding: 40px 20px;
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.card-icon svg {
    width: 80px;
    height: 80px;
    stroke: #d4af37;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .preco-display {
        font-size: 28px;
    }
    
    input, button, select {
        padding: 10px;
    }

    .ingrediente-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ingrediente-controles {
        width: 100%;
        justify-content: center;
    }

    .nota-table {
        font-size: 12px;
    }

    .nota-table th,
    .nota-table td {
        padding: 8px;
    }

    .ingrediente-admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ingrediente-admin-input {
        width: 100%;
    }
}
