:root {
    --primary-brown: #8b4513;
    --light-brown: #d2691e;
    --cream: #f5f5dc;
    --dark-brown: #654321;
    --accent: #cd853f;
    --text-dark: #2d1b1b;
    --text-light: #f5f5dc;
    --shadow: rgba(139, 69, 19, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, #fff8dc 100%);
    color: var(--text-dark);
    min-height: 100vh;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--light-brown) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.sidebar {
    background: white;
    border-right: 1px solid rgba(139, 69, 19, 0.1);
    height: 100vh;
    overflow-y: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.rating-star {
    color: #ffd700;
    cursor: pointer;
    font-size: 1.5em;
    transition: transform 0.2s ease;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star.active {
    color: #ffa500;
}

.flavor-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    margin: 20px auto;
    background: conic-gradient(
        #8b4513 0deg 60deg,
        #d2691e 60deg 120deg,
        #cd853f 120deg 180deg,
        #deb887 180deg 240deg,
        #f4a460 240deg 300deg,
        #d2b48c 300deg 360deg
    );
}

.taste-radar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    border: 2px solid var(--primary-brown);
}

.chart-container {
    height: 300px;
    position: relative;
    margin: 20px 0;
}

.font-size-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 100;
}

.font-xs {
    font-size: 0.75rem;
}
.font-sm {
    font-size: 0.875rem;
}
.font-base {
    font-size: 1rem;
}
.font-lg {
    font-size: 1.125rem;
}
.font-xl {
    font-size: 1.25rem;
}

.coffee-animation {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-brown);
    margin: 0 auto 20px;
}

.coffee-animation::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.coffee-bean {
    display: inline-block;
    width: 12px;
    height: 16px;
    background: var(--primary-brown);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    margin: 0 2px;
}

.coffee-bean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    background: var(--light-brown);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .chart-container {
        height: 200px;
    }

    .flavor-wheel {
        width: 200px;
        height: 200px;
    }

    .taste-radar {
        width: 150px;
        height: 150px;
    }
}
