:root {
    /* Light Mode Colors */
    --primary-color-light: #4a90e2;  
    --secondary-color-light: #5AD2F4;  
    --accent-color-light: #6C5CE7;  
    --dark-color-light: #2c3e50;
    --light-color-light: #f4f6f7;
    --text-color-light: #2d3436;
    --background-color-light: linear-gradient(135deg, var(--light-color-light) 0%, #f9fafb 100%);
    --card-background-light: white;
    --card-border-light: rgba(0,0,0,0.05);
    
    /* Default to Light Mode */
    --primary-color: var(--primary-color-light);
    --secondary-color: var(--secondary-color-light);
    --accent-color: var(--accent-color-light);
    --dark-color: var(--dark-color-light);
    --light-color: var(--light-color-light);
    --text-color: var(--text-color-light);
    --background-color: var(--background-color-light);
    --card-background: var(--card-background-light);
    --card-border: var(--card-border-light);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    background-attachment: fixed;
    padding-top: 0;
}

.container {
    max-width: 600px;  
    margin: 0 auto;
    padding: 10px;
    background-color: transparent;
    margin-top: 0;
}

header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

header p {
    color: var(--dark-color);
    font-size: 1rem;
    opacity: 0.7;
}

.assistant-container {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    border: 1px solid var(--card-border);
}

.assistant-container:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.assistant-avatar {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-circle {
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.avatar-circle:active {
    transform: scale(0.95);
    background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
}

.avatar-circle.listening {
    animation: pulse 1.5s infinite;
    background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
}

.avatar-circle:hover {
    transform: scale(1.05);
}

.avatar-circle i {
    color: white;
    font-size: 2.2rem;
}

.sound-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sound-waves.active {
    opacity: 1;
}

.bar {
    background-color: var(--primary-color);
    width: 4px;
    height: 5px;
    margin: 0 3px;
    border-radius: 3px;
    animation: sound-wave 1s infinite ease-in-out;
}

.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes sound-wave {
    0% { height: 5px; }
    50% { height: 25px; }
    100% { height: 5px; }
}

.status {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.interaction-area {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conversation {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    background: var(--light-color);
    border: 1px solid var(--card-border);
}

.message {
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.5;
}

.user-message {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    color: white;
    align-self: flex-end;
    margin-left: auto;
}

.assistant-message {
    background: var(--card-border);
    color: var(--text-color);
    align-self: flex-start;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    position: relative;  
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card h3 i {
    background-color: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 50%;
}

.feature-tabs {
    width: 100%;
    margin-top: 20px;
}

.feature-tabs .feature-card {
    box-shadow: none;
    padding: 15px;
    background-color: transparent;
}

.tab-buttons {
    background: var(--light-color);
    padding: 10px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.minimize-list-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.minimize-list-btn:hover {
    color: var(--accent-color);
}

#ingredients-list {
    list-style-type: none;
    margin-bottom: 15px;
    max-height: 500px;  
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#ingredients-list li button {
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

#ingredients-list.minimized {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.add-item {
    display: flex;
    gap: 10px;
}

.add-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.add-item button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.timer-display {
    font-size: 2.5rem;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-controls input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.timer-controls button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#stop-timer {
    background-color: #ff5252;
}

#current-recipe {
    padding: 10px;
    border-radius: 8px;
    background-color: var(--light-color);
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.shopping-list-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.shopping-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.shopping-list-header h3 {
    color: var(--primary-color);
    margin: 0;
}

.shopping-list-summary {
    display: flex;
    gap: 15px;
    color: var(--dark-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.add-item-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.add-item-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

.add-item-container button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopping-list-content {
    max-height: 300px;
    overflow-y: auto;
}

.categorized-list {
    list-style-type: none;
    padding: 0;
}

.category-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.3s ease;
}

.category-item:hover {
    background-color: rgba(74, 144, 226, 0.05);
}

.category-item .delete-item {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-item .delete-item:hover {
    color: #ff1744;
}

.shopping-list-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease;
}

.action-btn:hover {
    background-color: var(--accent-color);
}

.action-btn#clear-list-btn {
    background-color: #ff5252;
}

.action-btn#clear-list-btn:hover {
    background-color: #ff1744;
}

.action-btn i {
    margin-right: 5px;
}

.chat-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-background);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 15px;
    z-index: 1000;
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    transition: height 0.3s ease, transform 0.3s ease;
}

.chat-minimizer {
    position: absolute;
    top: -40px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

.chat-container.minimized {
    height: 60px;
    overflow: hidden;
    transform: translateX(-50%) translateY(calc(100% - 60px));
}

.chat-minimizer i {
    transition: transform 0.3s ease;
}

.chat-container.minimized .chat-minimizer i {
    transform: rotate(180deg);
}

.chat-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 1rem;
}

#send-chat-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-chat-btn:hover {
    background-color: var(--accent-color);
}

#floating-mic-container {
    position: fixed;
    bottom: 80px;  
    right: 20px;
    z-index: 1001;
}

#floating-mic-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#floating-mic-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

#floating-mic-btn:active {
    transform: scale(0.95);
}

#floating-mic-btn.listening {
    animation: pulse 1.5s infinite;
    background: linear-gradient(145deg, var(--secondary-color), var(--accent-color));
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;  
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-animation {
    width: 250px;  
    height: 250px;
    opacity: 0;
    transform: scale(0.7);
    animation: logo-reveal 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.splash-title {
    display: none;
}

@keyframes logo-reveal {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-15deg);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.3) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1.1) rotate(0deg);
    }
}

@keyframes title-fade {
    
}

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

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    .conversation {
        max-height: 200px;
    }
    
    .avatar-circle {
        width: 70px;
        height: 70px;
    }
    .chat-container {
        width: 100%;
        left: 0;
        transform: none;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
}