/* CSS Variables for theming */
:root {
    /* Common variables */
    --border-radius: 8px;
    --card-border-radius: 12px;
    --transition-speed: 0.3s;
    --sidebar-width: 240px;
    --header-height: 60px;
}

/* Light Theme (Default) */
.light-theme {
    --primary-color: #4a6da7;
    --primary-color-rgb: 74, 109, 167;
    --primary-color-light: #7a96c9;
    --secondary-color: #6c8ecc;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #333333;
    --text-color-light: #6c757d;
    --border-color: #e1e4e8;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --cheapest-color: #28a745;
    --info-color: #17a2b8;
}

/* Dark Theme */
.dark-theme {
    --primary-color: #5b88d9;
    --primary-color-rgb: 91, 136, 217;
    --primary-color-light: #8caee6;
    --secondary-color: #7c9fd6;
    --accent-color: #ff8585;
    --background-color: #1a1a2e;
    --card-bg-color: #232342;
    --text-color: #e6e6e6;
    --text-color-light: #a0a0b8;
    --border-color: #424268;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --cheapest-color: #2ecc71;
    --info-color: #3498db;
}

/* Sunset Theme */
.sunset-theme {
    --primary-color: #ff7e5f;
    --primary-color-rgb: 255, 126, 95;
    --primary-color-light: #ffb38a;
    --secondary-color: #ff9e7a;
    --accent-color: #8c52ff;
    --background-color: #fff9f4;
    --card-bg-color: #ffffff;
    --text-color: #362e2b;
    --text-color-light: #7a6e69;
    --border-color: #ffe0d0;
    --shadow-color: rgba(255, 126, 95, 0.1);
    --success-color: #47b881;
    --warning-color: #ffb347;
    --danger-color: #ff5252;
    --cheapest-color: #47b881;
    --info-color: #4c9aff;
}

/* Ocean Theme */
.ocean-theme {
    --primary-color: #00b8d9;
    --primary-color-rgb: 0, 184, 217;
    --primary-color-light: #5fdfff;
    --secondary-color: #3dc9e8;
    --accent-color: #ff5733;
    --background-color: #f0f8ff;
    --card-bg-color: #ffffff;
    --text-color: #1f2d3d;
    --text-color-light: #607d8b;
    --border-color: #d9f2ff;
    --shadow-color: rgba(0, 184, 217, 0.1);
    --success-color: #00c853;
    --warning-color: #ffd600;
    --danger-color: #ff3d00;
    --cheapest-color: #00c853;
    --info-color: #00b0ff;
}

/* Forest Theme */
.forest-theme {
    --primary-color: #2c8651;
    --primary-color-rgb: 44, 134, 81;
    --primary-color-light: #60b884;
    --secondary-color: #4da87a;
    --accent-color: #ff6b81;
    --background-color: #f6fbf8;
    --card-bg-color: #ffffff;
    --text-color: #2f3e46;
    --text-color-light: #6c8589;
    --border-color: #ddf0e4;
    --shadow-color: rgba(44, 134, 81, 0.1);
    --success-color: #4caf50;
    --warning-color: #ffca28;
    --danger-color: #f44336;
    --cheapest-color: #4caf50;
    --info-color: #42a5f5;
}

/* Night Mode Theme */
.night-theme {
    --primary-color: #8e64ff;
    --primary-color-rgb: 142, 100, 255;
    --primary-color-light: #b292ff;
    --secondary-color: #a47aff;
    --accent-color: #00e5ff;
    --background-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-color-light: #a0a0a0;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --success-color: #00e676;
    --warning-color: #ffea00;
    --danger-color: #ff3d00;
    --cheapest-color: #00e676;
    --info-color: #00b0ff;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    color: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 30px;
    border-radius: var(--card-border-radius);
    box-shadow: 0 6px 18px var(--shadow-color);
}

/* Professional Hero Style */
.hero.professional {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Theme-specific hero backgrounds */
.light-theme .hero.professional {
    background: linear-gradient(120deg, #2b4d7e, #1a365d);
}

.dark-theme .hero.professional {
    background: linear-gradient(120deg, #1a365d, #0d1b30);
}

.sunset-theme .hero.professional {
    background: linear-gradient(120deg, #ff7e5f, #feb47b);
}

.ocean-theme .hero.professional {
    background: linear-gradient(120deg, #00b8d9, #0052cc);
}

.forest-theme .hero.professional {
    background: linear-gradient(120deg, #2c8651, #1a523b);
}

.night-theme .hero.professional {
    background: linear-gradient(120deg, #614385, #516395);
}

.hero.professional::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAgMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIwLjA1Ij48Y2lyY2xlIHI9IjEiIGN4PSIxIiBjeT0iNSIvPjxjaXJjbGUgcj0iMSIgY3g9IjUiIGN5PSI5Ii8+PGNpcmNsZSByPSIxIiBjeD0iOSIgY3k9IjciLz48Y2lyY2xlIHI9IjEiIGN4PSI3IiBjeT0iMyIvPjxjaXJjbGUgcj0iMSIgY3g9IjMiIGN5PSIxIi8+PC9nPjwvc3ZnPg==');
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.hero-features i {
    color: var(--accent-color);
}

/* Hidden text for SEO but visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 0 20px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.menu-toggle:hover, .menu-toggle:active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

/* Theme Options */
.theme-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Selector */
.theme-selector select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition-speed);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.theme-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Theme Switch */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg-color);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.theme-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-icon-moon, .theme-icon-sun {
    position: absolute;
    font-size: 1.2rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-icon-moon {
    opacity: 0;
    transform: translateY(100%);
}

.theme-icon-sun {
    opacity: 1;
    transform: translateY(0);
}

.dark-theme .theme-icon-moon,
.night-theme .theme-icon-moon {
    opacity: 1;
    transform: translateY(0);
}

.dark-theme .theme-icon-sun,
.night-theme .theme-icon-sun {
    opacity: 0;
    transform: translateY(-100%);
}

.dark-theme .theme-toggle-btn,
.night-theme .theme-toggle-btn {
    border-color: var(--primary-color);
    background-color: var(--background-color);
}

/* Layout */
.container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg-color);
    box-shadow: 2px 0 5px var(--shadow-color);
    padding: 20px 0;
    transition: transform var(--transition-speed);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 90;
}

.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: margin-left var(--transition-speed);
}

/* Navigation Menu */
.nav-menu li {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color var(--transition-speed);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-menu li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu li.active {
    border-left-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.nav-menu li i {
    color: var(--primary-color);
}

/* Keywords for SEO */
.keywords-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.keywords {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    text-align: center;
    line-height: 1.3;
}

/* Module Styles */
.module {
    display: none;
    background-color: var(--card-bg-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 8px var(--shadow-color);
    margin-bottom: 20px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.module.active {
    display: block;
}

.module-header {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
}

.module-header h2 {
    margin-bottom: 5px;
}

.module-content {
    padding: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Button Styles */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color var(--transition-speed), transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

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

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

.secondary {
    background-color: var(--border-color);
    color: var(--text-color);
}

.secondary:hover {
    background-color: var(--border-color);
}

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

.danger:hover {
    background-color: #c82333;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* Cards and Lists */
.card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

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

.card-actions {
    display: flex;
    gap: 10px;
}

/* Mood Tracker Specific */
.mood-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.mood-emoji {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
}

.mood-emoji:hover {
    transform: scale(1.1);
}

.mood-emoji.selected {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.emoji-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.emoji-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.mood-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.mood-chart-container {
    background-color: var(--card-bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.mood-summary {
    background-color: var(--card-bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.mood-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
}

.mood-card-emoji {
    font-size: 1.8rem;
}

.mood-card-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mood-card-store {
    font-weight: 600;
}

.mood-card-date {
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.mood-card-type {
    font-size: 0.85rem;
    background-color: var(--primary-color-light);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.mood-card-note {
    margin-top: 5px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-color-light);
}

@media (max-width: 768px) {
    .mood-stats {
        grid-template-columns: 1fr;
    }
}

/* Price Comparison Specific */
.comparison-result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cheapest {
    color: var(--cheapest-color);
    font-weight: bold;
}

/* Product Tracker Specific */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.target-met {
    color: var(--success-color);
}

.target-not-met {
    color: var(--warning-color);
}

.price-history-container {
    margin-top: 15px;
    margin-bottom: 15px;
}

.price-history-container h5 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-chart-container {
    position: relative;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    height: 150px;
    overflow: hidden;
}

.price-chart {
    width: 100%;
    height: 100%;
}

.price-trend-indicator {
    font-size: 0.85rem;
    font-weight: 400;
}

.price-up {
    color: var(--danger-color);
}

.price-down {
    color: var(--success-color);
}

.price-stable {
    color: var(--text-color-light);
}

.share-product-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.share-product-btn:hover {
    background-color: var(--secondary-color);
}

.price-history-container {
    margin-top: 15px;
}

.price-history-container h5 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.price-chart-container {
    position: relative;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    height: 150px;
    overflow: hidden;
}

.price-chart {
    width: 100%;
    height: 100%;
}

/* Coupon Generator Specific */
.coupon-card {
    text-align: center;
    padding: 15px;
}

.coupon-code {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 10px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    margin: 10px 0;
}

/* Budget Calculator Specific */
.budget-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.budget-ring {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.budget-ring-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.budget-ring-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.budget-ring-spent {
    font-size: 1.2rem;
    color: var(--text-color-light);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    transform-origin: center;
}

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

.budget-progress {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.over-budget .progress-bar {
    background-color: var(--danger-color);
}

.expense-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Shopping Notes Specific */
.shopping-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.shopping-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.shopping-item.completed span {
    text-decoration: line-through;
    color: var(--border-color);
}

/* Affiliate Links Specific */
.link-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-platform {
    font-weight: bold;
    color: var(--primary-color);
}

.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: var(--success-color);
    color: white;
}

.notification.error {
    background-color: var(--danger-color);
    color: white;
}

.notification.info {
    background-color: var(--info-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEO Footer Styles */
.seo-footer {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: var(--card-bg-color);
    border-radius: var(--card-border-radius);
    box-shadow: 0 -2px 10px var(--shadow-color);
}

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

.seo-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.seo-footer ul {
    padding-left: 20px;
}

.seo-footer li {
    margin-bottom: 10px;
    line-height: 1.5;
    list-style-type: disc;
}

.seo-footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.keyword-cloud {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-cloud span {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* Shopping Assistant Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: var(--card-bg-color);
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.user-message {
    margin-left: auto;
    border-radius: 15px 15px 0 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
}

.bot-message {
    margin-right: auto;
    border-radius: 15px 15px 15px 0;
    background-color: var(--background-color);
    padding: 10px 15px;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-color-light);
    margin-top: 5px;
}

.bot-message .message-time {
    color: var(--text-color-light);
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
}

.typing-indicator {
    padding: 15px;
    display: flex;
    align-items: center;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color-light);
    display: inline-block;
    animation: typingDot 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.message-reactions {
    display: flex;
    gap: 5px;
}

.emoji-reaction {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    padding: 2px;
}

.emoji-reaction:hover {
    opacity: 1;
    transform: scale(1.2);
}

.emoji-reaction.active {
    opacity: 1;
    transform: scale(1.2);
}

.product-suggestions {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.suggestion-card {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.suggestion-price {
    font-weight: bold;
    color: var(--primary-color);
}

.suggestion-rating {
    color: var(--warning-color);
}

.suggestion-btn {
    margin-top: auto;
}

/* Collaborative Wishlist Styles */
.wishlist-container {
    display: none;
    margin-top: 20px;
}

.wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.wishlist-tab-container {
    margin-top: 20px;
}

.wishlist-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.wishlist-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--text-color-light);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.wishlist-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.wishlist-tab-content {
    display: none;
}

.wishlist-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wishlist-item {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.wishlist-item:hover {
    box-shadow: 0 3px 8px var(--shadow-color);
}

.wishlist-item.purchased {
    opacity: 0.7;
}

.wishlist-item-header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.wishlist-item-header h4 {
    margin: 0;
    font-size: 1rem;
}

.wishlist-item-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.priority-high {
    border-left: 4px solid var(--danger-color);
}

.priority-medium {
    border-left: 4px solid var(--warning-color);
}

.priority-low {
    border-left: 4px solid var(--success-color);
}

.item-notes {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
}

.item-notes h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.item-notes ul {
    margin: 0;
    padding-left: 15px;
}

.item-notes li {
    margin-bottom: 8px;
}

.note-text {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.note-meta {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.purchase-info {
    padding: 8px 15px;
    background-color: rgba(var(--success-color-rgb), 0.1);
    color: var(--success-color);
    font-size: 0.85rem;
    border-top: 1px solid rgba(var(--success-color-rgb), 0.2);
}

.collaborator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.collaborator-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collaborator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.collaborator-details {
    display: flex;
    flex-direction: column;
}

.collaborator-name {
    font-weight: 500;
}

.collaborator-email {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.shared-wishlist-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
}

.wishlist-card-header {
    padding: 12px 15px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.wishlist-card-header h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.wishlist-completion {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.wishlist-card-content {
    padding: 15px;
}

.wishlist-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-color-light);
}

.wishlist-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.modal-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 90%;
    width: 400px;
    animation: fadeIn 0.3s ease;
}

.close-notification-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-light);
}

.close-notification-btn:hover {
    color: var(--text-color);
}

.share-notification h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.share-notification ul {
    margin: 15px 0;
    padding-left: 20px;
}

.share-notification li {
    margin-bottom: 5px;
}

/* AR Preview Styles */
.ar-preview-container {
    margin-bottom: 30px;
}

.ar-container {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.ar-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#ar-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    z-index: 10;
    text-align: center;
}

.ar-message {
    padding: 20px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ar-message.error {
    border-left: 4px solid var(--danger-color);
}

.ar-message.info {
    border-left: 4px solid var(--primary-color);
}

.ar-message.success {
    border-left: 4px solid var(--success-color);
}

.ar-message h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.ar-product-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ar-product-option {
    width: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-product-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.ar-product-option.selected {
    border-color: var(--primary-color);
}

.ar-product-thumbnail {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.ar-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar-product-info {
    padding: 8px;
    text-align: center;
}

.ar-product-info h4 {
    margin: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ar-simulation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ar-simulation-content {
    width: 90%;
    max-width: 600px;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.ar-simulation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.ar-simulation-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-simulation-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-light);
}

.ar-simulation-body {
    padding: 20px;
}

.ar-simulation-view {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
}

.ar-simulation-environment {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/ar_environment.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.ar-simulation-product {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;
    cursor: move; /* Show move cursor */
}

.ar-simulation-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ar-simulation-note {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-align: center;
    margin: 10px 0 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 95;
        width: 250px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .module-header {
        padding: 15px;
    }

    .module-content {
        padding: 15px;
    }

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

    .logo h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        display: none;
    }

    header {
        padding: 0 15px;
    }

    .card {
        padding: 12px;
    }
}
