/* ============================================
   GLOBAL STYLES - QR MENU
   ============================================ */

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

:root {
    --primary-color: #6f4e37;
    --secondary-color: #d4a574;
    --accent-color: #f4a460;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f7f4;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

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

/* ============ Typography ============ */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ============ Header ============ */
header {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: flex-end;
}

header nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* ============ Buttons ============ */
button, .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5a3f2d;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #c29560;
    box-shadow: var(--shadow-lg);
}

button:disabled, .btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ Forms ============ */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}

/* ============ Cards ============ */
.card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============ Messages ============ */
.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: none;
}

.message.show {
    display: block;
}

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

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

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message.hidden {
    display: none;
}

/* ============ Footer ============ */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    header nav ul {
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    button, .btn-primary, .btn-secondary {
        width: 100%;
    }
}
