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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f8f6f0 0%, #ede8d8 100%);
    background-attachment: fixed;
    color: #2c2c2c;
    line-height: 1.6;
}

/* Admin Toggle Button */
.admin-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #c49b61;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.admin-toggle:hover {
    background: #b8956a;
    transform: translateY(-2px);
}

/* Header Styling */
.menu-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo-oval {
    background: linear-gradient(135deg, #d4af7a 0%, #c49b61 100%);
    border-radius: 50%;
    padding: 40px;
    margin: 0 auto 30px;
    max-width: 400px;
    position: relative;
    border: 3px solid #b8956a;
}

.logo-oval h1 {
    font-size: 2.8rem;
    color: #2c2c2c;
    font-style: italic;
    margin-bottom: 5px;
}

.logo-oval h2 {
    font-size: 3.5rem;
    color: #2c2c2c;
    font-style: italic;
    margin-bottom: 10px;
    font-family: 'Brush Script MT', cursive;
}

.coffee-icon, .beans-icon {
    position: absolute;
    font-size: 2rem;
}

.coffee-icon {
    top: 30px;
    left: 40px;
}

.beans-icon {
    top: 30px;
    right: 40px;
}

.social-handle {
    font-size: 0.9rem;
    color: #2c2c2c;
    font-weight: bold;
}

.header-notices {
    margin: 20px 0;
    font-size: 0.85rem;
    color: #666;
}

.social-media h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2c2c2c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 999;
    min-width: 250px;
}

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

.close-admin {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Menu Container */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Section */
.category-section {
    background: white;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.category-header {
    background: linear-gradient(135deg, #d4af7a 0%, #c49b61 100%);
    color: #2c2c2c;
    padding: 20px;
    text-align: center;
    position: relative;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.add-category-item {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #2c2c2c;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-category-item:hover {
    background: rgba(255,255,255,0.3);
}

/* Items Grid */
.items-grid {
    padding: 30px;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Menu Item */
.menu-item {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #d4af7a;
}

.menu-item.out-of-stock {
    opacity: 0.6;
    background: #f5f5f5;
}

.menu-item.out-of-stock::after {
    content: "AGOTADO";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

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

.item-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c2c2c;
    flex: 1;
}

.item-prices {
    text-align: right;
    flex-shrink: 0;
}

.item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c49b61;
    margin-left: 15px;
}

.item-price.secondary {
    font-size: 1rem;
    color: #666;
}

.item-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-style: italic;
}

.item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: #c49b61;
    color: white;
}

.btn-primary:hover {
    background: #b8956a;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-edit {
    background: #17a2b8;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-edit:hover {
    background: #138496;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-delete:hover {
    background: #c82333;
}

.btn-stock {
    background: #28a745;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-stock:hover {
    background: #1e7e34;
}

.btn-stock.out-of-stock {
    background: #ffc107;
    color: #212529;
}

.btn-stock.out-of-stock:hover {
    background: #e0a800;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-header h3 {
    color: #2c2c2c;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #c49b61;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-oval h1 {
        font-size: 2rem;
    }
    
    .logo-oval h2 {
        font-size: 2.5rem;
    }
    
    .category-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .item-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .item-prices {
        text-align: left;
    }
    
    .admin-panel {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .modal-content {
        margin: 20px;
        width: auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-oval {
        padding: 20px;
    }
    
    .menu-container {
        padding: 10px;
    }
    
    .items-grid {
        padding: 15px;
    }
    
    .menu-item {
        padding: 15px;
    }
    
    .admin-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}