:root {
    --coffee-dark: #2C1810;
    --coffee-medium: #6F4E37;
    --coffee-light: #A67C52;
    --cream: #F5F1ED;
    --white: #FFFFFF;
    --accent: #C7956D;
    --text-dark: #2C1810;
    --text-light: #6F4E37;
    --success: #7D8F69;
    --border-light: #E8DFD7;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.page-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

main {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light) !important;
    padding: 1.2rem 0;
    box-shadow: none !important;
    width: 100%;
}

.container-fluid {
    max-width: min(75rem, 90vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.container {
    max-width: min(75rem, 90vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.navbar-brand {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--coffee-dark) !important;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

    .navbar-brand:hover {
        color: var(--coffee-medium) !important;
    }

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: var(--coffee-dark) !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -0.3125rem;
        left: 50%;
        width: 0;
        height: 0.125rem;
        background-color: var(--accent);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 80%;
    }

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    transition: color 0.3s ease;
}

    .dropdown-toggle:hover {
        color: var(--coffee-dark);
    }

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: clamp(0.5rem, 1.5vw, 0.75rem);
    min-width: clamp(10rem, 20vw, 12.5rem);
    box-shadow: 0 0.25rem 1.25rem rgba(44, 24, 16, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1.25rem);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: inherit;
    font-family: inherit;
}

    .dropdown-item:first-child {
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem) 0 0;
    }

    .dropdown-item:last-child {
        border-radius: 0 0 clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .dropdown-item:hover {
        background-color: var(--cream);
        color: var(--coffee-dark);
    }

.dropdown-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 0.5rem 0;
}

.user-icon {
    width: clamp(1.5rem, 3vw, 1.75rem);
    height: clamp(1.5rem, 3vw, 1.75rem);
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 600;
}

.lang-flag {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* Hero Section */
.hero-section {
    min-height: auto;
    padding: clamp(3rem, 6vh, 5rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vh, 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: clamp(20rem, 40vw, 37.5rem);
        height: clamp(20rem, 40vw, 37.5rem);
        background: radial-gradient(circle, rgba(199, 149, 109, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: clamp(15rem, 30vw, 25rem);
        height: clamp(15rem, 30vw, 25rem);
        background: radial-gradient(circle, rgba(111, 78, 55, 0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 50rem;
    padding: 0;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background-color: var(--coffee-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: clamp(1.5rem, 5vw, 3.125rem);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.938rem rgba(44, 24, 16, 0.2);
}

    .cta-button:hover {
        background-color: var(--coffee-medium);
        transform: translateY(-0.125rem);
        box-shadow: 0 0.375rem 1.25rem rgba(44, 24, 16, 0.3);
        color: var(--white);
    }

/* Features Grid */
.features-section {
    padding: clamp(1.5rem, 3vh, 2.5rem) 0 clamp(2rem, 4vh, 3rem) 0;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-top: 0;
}

.feature-card {
    background-color: var(--white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-0.3rem);
        box-shadow: 0 0.625rem 1.875rem rgba(44, 24, 16, 0.1);
    }

.feature-icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.feature-title {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--coffee-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Footer */
footer, .footer {
    position: static !important;
}

.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding: clamp(1.5rem, 3vh, 2rem) 0;
    width: 100%;
}

    .footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-light);
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer a {
        color: var(--coffee-medium);
        text-decoration: none;
        margin-left: 1.5rem;
        transition: color 0.3s ease;
    }

        .footer a:hover {
            color: var(--coffee-dark);
        }

/* Page Content */
.page-section {
    padding: clamp(2rem, 4vh, 3rem) 0;
    width: 100%;
}

.page-section .container {
    max-width: min(60rem, 90vw);
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--coffee-dark);
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* Cards */
.coffee-card {
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    transition: all 0.3s ease;
}

.coffee-card:hover {
    box-shadow: 0 0.25rem 1rem rgba(44, 24, 16, 0.08);
}

.coffee-card-header {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--coffee-dark);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

/* Tables */
.coffee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.coffee-table th {
    background-color: var(--cream);
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--border-light);
}

.coffee-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    vertical-align: middle;
}

.coffee-table tbody tr:hover {
    background-color: rgba(245, 241, 237, 0.5);
}

.coffee-table .order-code {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--coffee-medium);
    background-color: var(--cream);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* Buttons */
.btn-coffee {
    background-color: var(--coffee-dark);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-coffee:hover {
    background-color: var(--coffee-medium);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(44, 24, 16, 0.2);
}

.btn-coffee-outline {
    background: none;
    color: var(--coffee-medium);
    border: 1.5px solid var(--coffee-medium);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-coffee-outline:hover {
    background-color: var(--coffee-dark);
    color: var(--white);
    border-color: var(--coffee-dark);
}

.btn-coffee-danger {
    background: none;
    color: #b44;
    border: 1.5px solid #daa;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-coffee-danger:hover {
    background-color: #b44;
    color: var(--white);
    border-color: #b44;
}

.btn-coffee-add {
    background: none;
    color: var(--coffee-light);
    border: 1.5px dashed var(--border-light);
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-coffee-add:hover {
    border-color: var(--coffee-medium);
    color: var(--coffee-dark);
    background-color: var(--cream);
}

/* Forms */
.coffee-form .form-label {
    font-weight: 600;
    color: var(--coffee-dark);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.coffee-form .form-control,
.coffee-form .form-select {
    border: 1.5px solid var(--border-light);
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.coffee-form .form-control:focus,
.coffee-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(199, 149, 109, 0.15);
}

/* Info details */
.info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    align-items: baseline;
}

.info-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: var(--text-dark);
}

/* Status badges */
.badge-feedback {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-feedback-done {
    background-color: rgba(125, 143, 105, 0.15);
    color: var(--success);
}

.badge-feedback-pending {
    background-color: rgba(199, 149, 109, 0.15);
    color: var(--coffee-light);
}

/* Message pages */
.message-page {
    text-align: center;
    padding: clamp(3rem, 8vh, 5rem) clamp(1rem, 3vw, 2rem);
}

.message-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.message-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 0.75rem;
}

.message-text {
    color: var(--text-light);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    max-width: 30rem;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Responsive table wrapper */
.table-responsive-coffee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Utility Classes */
.text-coffee {
    color: var(--coffee-dark);
}

.bg-cream {
    background-color: var(--cream);
}

/* Responsive */
@media (max-width: 48rem) {
    .footer .container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .footer a {
        margin: 0 0.5rem;
    }

    .navbar-nav {
        justify-content: center;
    }

    .container-fluid {
        gap: 1rem;
    }
}

