/* ============================================
   TOOLSHARE - MAIN STYLESHEET
   ============================================ */

/* ============================================
   COLOR PALETTE - CSS CUSTOM PROPERTIES
   Universal color system for all themes
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #2E6D9F;
    --color-primary-hover: #265A84;
    --color-primary-light: #4A8BBF;

    /* Secondary Colors */
    --color-secondary: #58A88E;
    --color-secondary-hover: #479174;
    --color-secondary-light: #70BDA3;

    /* Highlighter/Accent */
    --color-highlighter: #F2C94C;
    --color-highlighter-hover: #E5BC3A;

    /* Backgrounds */
    --color-bg-white: #FFFFFF;
    --color-bg-soft: #F6F8FA;
    --color-bg-card: #FFFFFF;

    /* Text Colors */
    --color-text-primary: #2E2E2E;
    --color-text-secondary: #666666;
    --color-text-muted: #999999;

    /* Status Colors */
    --color-status-pending: #F2C94C;
    --color-status-confirmed: #58A88E;
    --color-status-completed: #6c757d;
    --color-status-cancelled: #dc3545;

    /* Semantic Colors */
    --color-success: #58A88E;
    --color-success-bg: #e8f5f1;
    --color-error: #dc3545;
    --color-error-bg: #f8d7da;
    --color-warning: #F2C94C;
    --color-warning-bg: #fff3cd;
    --color-info: #2E6D9F;
    --color-info-bg: #d1ecf1;

    /* Brand Colors - Blue gradient */
    --color-brand-gradient-start: #2E6D9F;
    --color-brand-gradient-end: #4A8BBF;

    /* Borders & Dividers */
    --color-border: #e0e0e0;
    --color-border-focus: #2E6D9F;

    /* Calendar Event Colors */
    --color-calendar-available: #58A88E;
    --color-calendar-booked: #dc3545;
    --color-calendar-blocked: #F2C94C;
    --color-calendar-selected: #2E6D9F;
}

/* Theme Selector Base Styles */
.theme-select {
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 0.75rem;
    min-width: 162px;
}

.theme-select option {
    background: white;
    color: #333;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    /* Backgrounds - black */
    --color-bg-white: #000000;
    --color-bg-soft: #000000;
    --color-bg-card: #000000;

    /* Text - soft white */
    --color-text-primary: #F6F8FA;
    --color-text-secondary: #F6F8FA;
    --color-text-muted: #F6F8FA;

    /* Keep brand colors vibrant */
    --color-primary: #4A8BBF;
    --color-primary-hover: #5A9BCF;
    --color-primary-light: #6AABDF;

    --color-secondary: #70BDA3;
    --color-secondary-hover: #80CDB3;
    --color-secondary-light: #90DDC3;

    /* Accent colors - keep vibrant */
    --color-highlighter: #F2C94C;
    --color-highlighter-hover: #FFD95C;

    /* Status colors - adjust for visibility */
    --color-status-pending: #FFD95C;
    --color-status-confirmed: #70BDA3;
    --color-status-completed: #808080;
    --color-status-cancelled: #ff6b6b;

    /* Semantic colors */
    --color-success: #70BDA3;
    --color-success-bg: #1a3d36;
    --color-error: #ff6b6b;
    --color-error-bg: #3d1a1a;
    --color-warning: #FFD95C;
    --color-warning-bg: #3d3a1a;
    --color-info: #4A8BBF;
    --color-info-bg: #1a2d3d;

    /* Brand Colors */
    --color-brand-gradient-start: #4A8BBF;
    --color-brand-gradient-end: #6AABDF;

    /* Borders */
    --color-border: #3d3d3d;
    --color-border-focus: #4A8BBF;

    /* Calendar Event Colors */
    --color-calendar-available: #70BDA3;
    --color-calendar-booked: #ff6b6b;
    --color-calendar-blocked: #FFD95C;
    --color-calendar-selected: #4A8BBF;
}

/* Dark Mode Styling */
[data-theme="dark"] body {
    background: #000000;
    color: #F6F8FA;
}

[data-theme="dark"] .container {
    background: #000000;
}

[data-theme="dark"] .header {
    background: #000000;
}

[data-theme="dark"] .main-content {
    background: #000000;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .cart-icon-btn {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .btn-secondary {
    background: var(--color-secondary);
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .btn-primary {
    background: var(--color-primary);
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .social-link {
    background: #000000;
    border: 1px solid white;
}

[data-theme="dark"] .social-link svg {
    fill: #F6F8FA;
}

[data-theme="dark"] .lang-btn {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .theme-select {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .theme-select option {
    background: #000000;
    color: #F6F8FA;
}

/* Dark Mode - Navigation Tabs */
[data-theme="dark"] .nav-tabs {
    background: #000000;
    border-bottom: 3px solid var(--color-secondary);
}

[data-theme="dark"] .nav-tab {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

[data-theme="dark"] .nav-tab.active {
    background: white;
    color: #000000;
    border-bottom: 3px solid var(--color-secondary);
}

/* Dark Mode - Tool Cards */
[data-theme="dark"] .tool-card {
    background: #000000;
    color: #F6F8FA;
    border: 2px solid var(--color-secondary);
    box-shadow: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .tool-card:hover {
    box-shadow: 0 0 0 1px white, 0 12px 30px rgba(112, 189, 163, 0.3);
    transform: translateY(-4px);
    border-color: var(--color-secondary-hover);
}

[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .tool-card p,
[data-theme="dark"] .tool-card span {
    color: #F6F8FA;
}

/* Tool Items (My Tools section) - Base styles */
.tool-item {
    background: white;
    border: 2px solid var(--color-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    box-shadow: 0 12px 30px rgba(112, 189, 163, 0.2);
    transform: translateY(-4px);
    border-color: var(--color-secondary-hover);
}

/* Dark Mode - Tool Items (My Tools section) */
[data-theme="dark"] .tool-item {
    background: #000000;
    border: 2px solid var(--color-secondary);
}

[data-theme="dark"] .tool-item:hover {
    box-shadow: 0 0 0 1px white, 0 12px 30px rgba(112, 189, 163, 0.3);
    transform: translateY(-4px);
    border-color: var(--color-secondary-hover);
}

[data-theme="dark"] .tool-item h4,
[data-theme="dark"] .tool-item p,
[data-theme="dark"] .tool-item strong {
    color: #F6F8FA;
}

/* Dark Mode - Stat Cards (INVERTED) */
[data-theme="dark"] .stat-card {
    background: #000000;
    color: #F6F8FA;
    border: 2px solid var(--color-secondary);
}

[data-theme="dark"] .stat-card h3 {
    color: #F6F8FA;
}

[data-theme="dark"] .stat-card p {
    color: #F6F8FA;
}

/* Dark Mode - All Text Elements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label,
[data-theme="dark"] small,
[data-theme="dark"] .section h2,
[data-theme="dark"] .section p,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .empty-state,
[data-theme="dark"] .empty-state p {
    color: #F6F8FA !important;
}

/* Dark Mode - Search and Filters */
[data-theme="dark"] .search-input,
[data-theme="dark"] .filter-select {
    background: #000000;
    color: #F6F8FA;
    border: 1px solid white;
}

/* Dark Mode - Buttons on Tool Cards */
[data-theme="dark"] .tool-card .btn-primary {
    background: var(--color-primary);
    color: #F6F8FA;
}

[data-theme="dark"] .tool-card .btn-secondary {
    background: var(--color-secondary);
    color: #F6F8FA;
}

/* Dark Mode - Booking Items */
[data-theme="dark"] .booking-item {
    background: #000000;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 2px 4px rgba(112, 189, 163, 0.1);
}

[data-theme="dark"] .booking-item h3,
[data-theme="dark"] .booking-item h4,
[data-theme="dark"] .booking-item p,
[data-theme="dark"] .booking-item span,
[data-theme="dark"] .booking-item strong {
    color: #F6F8FA;
}

/* Dark Mode - Light backgrounds need dark text */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-content h1,
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .modal-content h3,
[data-theme="dark"] .modal-content h4,
[data-theme="dark"] .modal-content p,
[data-theme="dark"] .modal-content span,
[data-theme="dark"] .modal-content label,
[data-theme="dark"] .modal-content strong,
[data-theme="dark"] .modal-content div {
    color: #000000 !important;
}

/* Dark mode - modal inputs should have black text on white background */
[data-theme="dark"] .modal-content input:not([type="checkbox"]),
[data-theme="dark"] .modal-content select,
[data-theme="dark"] .modal-content textarea {
    color: #000000 !important;
    background: white !important;
}

/* Dark mode - alert/warning boxes */
[data-theme="dark"] [style*="background: #fff3cd"],
[data-theme="dark"] [style*="background:#fff3cd"],
[data-theme="dark"] [style*="background:#FFF3CD"],
[data-theme="dark"] div[style*="background: #fff3cd"],
[data-theme="dark"] div[style*="background:#fff3cd"] {
    background: #fff3cd !important;
}

[data-theme="dark"] [style*="background: #fff3cd"] *,
[data-theme="dark"] [style*="background:#fff3cd"] *,
[data-theme="dark"] [style*="background:#FFF3CD"] *,
[data-theme="dark"] div[style*="background: #fff3cd"] *,
[data-theme="dark"] div[style*="background:#fff3cd"] * {
    color: #000000 !important;
}

/* Dark mode - buttons with white backgrounds need dark text */
[data-theme="dark"] button[style*="background: white"],
[data-theme="dark"] button[style*="background:white"],
[data-theme="dark"] button[style*="background: #fff"],
[data-theme="dark"] button[style*="background:#fff"],
[data-theme="dark"] .btn[style*="background: white"],
[data-theme="dark"] .btn[style*="background:white"] {
    color: #000000 !important;
    background: white !important;
}

/* Dark mode - Available/Unavailable badges need dark text on light backgrounds */
[data-theme="dark"] span[style*="background: #d4edda"],
[data-theme="dark"] span[style*="background:#d4edda"],
[data-theme="dark"] span[style*="background: #f8d7da"],
[data-theme="dark"] span[style*="background:#f8d7da"] {
    color: #000000 !important;
}

/* Referral code input - limit width to fit 8 characters */
#profileReferralCode {
    max-width: 180px !important;
    min-width: 150px !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

/* Dark mode - referral code input */
[data-theme="dark"] #profileReferralCode {
    background: white !important;
    color: #000000 !important;
}

[data-theme="dark"] .tool-card,
[data-theme="dark"] .tool-card h3,
[data-theme="dark"] .tool-card h4,
[data-theme="dark"] .tool-card p {
    background: #000000;
    color: #F6F8FA !important;
}

/* Dark mode - buttons on white/light backgrounds */
[data-theme="dark"] button,
[data-theme="dark"] .btn {
    color: #F6F8FA;
}

/* Dark mode - calendar and forms */
[data-theme="dark"] .fc,
[data-theme="dark"] .fc * {
    color: #2d3748;
}

/* Dark mode - form inputs on dark backgrounds */
[data-theme="dark"] input:not([type="checkbox"]),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    color: #F6F8FA !important;
    background: #000000;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* White page background */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg-soft);
    color: var(--color-text-primary);
    min-height: 100vh;
}

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

/* Header with white background */
.header {
    background: var(--color-bg-white);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.header-logo-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100;
}

.header-logo-container:hover .header-logo {
    opacity: 0.85;
}

.header-logo-container:active .header-logo {
    opacity: 0.75;
}

.header-logo {
    height: 78px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    transform-origin: left center;
}

.header-top-row {
    display: block;
}

.header-left-column {
    display: contents;
}

.header-center {
    text-align: center;
    padding: 0 220px;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
}

/* Language-specific header text colors */
/* UK: NEIBAS - dark blue, tagline - red */
body[data-lang="en"] .header h1 {
    color: #012169;
}
body[data-lang="en"] .header p {
    color: #C8102E;
}

/* HU: NEIBAS - red, tagline - green */
body[data-lang="hu"] .header h1 {
    color: #CD2A3E;
}
body[data-lang="hu"] .header p {
    color: #436F4D;
}

/* DE: NEIBAS - graphite, tagline - red */
body[data-lang="de"] .header h1 {
    color: #3d3d3d;
}
body[data-lang="de"] .header p {
    color: #DD0000;
}

/* Auth Section */
.auth-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-bg-white);
    color: var(--color-text-primary);
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.loading {
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Main Content */
.main-content {
    background: var(--color-bg-white);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-top: 4px solid var(--color-secondary);
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-secondary);
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-secondary-hover);
    box-shadow: 0 0 0 3px rgba(88, 168, 142, 0.1);
}

.filter-select {
    padding: 10px;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    font-size: 1rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-secondary-hover);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tool-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: stretch;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tool-card h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

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

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.rating {
    color: #ffc107;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-bg-white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 3px solid var(--color-secondary);
}

.nav-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    animation: shimmer 2s ease-in-out infinite;
}

.nav-tab:not(.active):hover {
    box-shadow: 0 0 10px rgba(46, 109, 159, 0.4);
}

/* Shimmer effect for active nav tabs - default blue */
@keyframes shimmer {
    0%, 100% { box-shadow: 0 0 5px rgba(46, 109, 159, 0.3); }
    50% { box-shadow: 0 0 15px rgba(46, 109, 159, 0.6), 0 0 20px rgba(46, 109, 159, 0.3); }
}

/* UK Red shimmer */
@keyframes shimmer-red {
    0%, 100% { box-shadow: 0 0 5px rgba(252, 50, 50, 0.3); }
    50% { box-shadow: 0 0 15px rgba(252, 50, 50, 0.6), 0 0 20px rgba(252, 50, 50, 0.3); }
}

/* HU Green shimmer */
@keyframes shimmer-green {
    0%, 100% { box-shadow: 0 0 5px rgba(88, 168, 142, 0.3); }
    50% { box-shadow: 0 0 15px rgba(88, 168, 142, 0.6), 0 0 20px rgba(88, 168, 142, 0.3); }
}

/* DE Yellow shimmer */
@keyframes shimmer-yellow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 206, 0, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 206, 0, 0.6), 0 0 20px rgba(255, 206, 0, 0.3); }
}

/* User Info */
.user-info {
    background: white;
    color: var(--color-text-primary);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--color-secondary);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.stat-card p {
    color: #333;
}

/* Booking Items */
.booking-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-secondary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-pending { border-left-color: var(--color-status-pending); }
.status-confirmed { border-left-color: var(--color-status-confirmed); }
.status-completed { border-left-color: var(--color-status-completed); }
.status-cancelled { border-left-color: var(--color-status-cancelled); }

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Setup Notice */
.setup-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.setup-notice h3 {
    margin-bottom: 15px;
    color: #856404;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: -8px;
    background: #ff0000;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 12px rgba(255, 0, 0, 0.6);
    z-index: 10;
    border: 2px solid white;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.notification-badge.fade-out {
    opacity: 0;
    transform: scale(0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 12px rgba(255, 0, 0, 0.6);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.9);
    }
}

.notification-badge.new {
    animation: pulse 1s infinite, shake 0.5s infinite;
}

/* Urgent badge for expiring bookings (< 6 hours left) */
.notification-badge.urgent {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 50%, #ff0000 100%);
    animation: urgentPulse 0.5s infinite, urgentShake 0.3s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.4);
}

@keyframes urgentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 0, 0, 0.6);
    }
}

@keyframes urgentShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-4px) rotate(-5deg); }
    75% { transform: translateX(4px) rotate(5deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-3px) scale(1.05); }
    75% { transform: translateX(3px) scale(1.05); }
}

/* ============================================
   OWNER ACTION BANNER
   Prominent notification for pending booking requests
   ============================================ */
.owner-action-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    animation: slideDown 0.3s ease-out, bannerPulse 2s infinite;
    transform-origin: top;
}

.owner-action-banner.warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.4);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(220, 53, 69, 0.8);
    }
}

.owner-action-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.owner-action-banner .banner-icon {
    font-size: 1.5rem;
    animation: bellRing 1s infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
}

.owner-action-banner .banner-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.owner-action-banner .banner-countdown {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.owner-action-banner .banner-action {
    background: white;
    color: #dc3545;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.owner-action-banner.warning .banner-action {
    color: #856404;
}

.owner-action-banner .banner-action:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.owner-action-banner .banner-dismiss {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.owner-action-banner .banner-dismiss:hover {
    opacity: 1;
}

/* Push content down when banner is visible */
body.has-action-banner {
    padding-top: 60px;
}

/* Dark theme support */
[data-theme="dark"] .owner-action-banner {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
}

[data-theme="dark"] .owner-action-banner.warning {
    background: linear-gradient(135deg, #ffca2c 0%, #cc9a00 100%);
}

.nav-tab.has-notification {
    animation: tabPulse 2s infinite;
    transition: background 0.5s ease;
}

@keyframes tabPulse {
    0%, 100% { 
        background: transparent;
    }
    50% { 
        background: rgba(255, 0, 0, 0.15);
    }
}

.nav-tab .notification-badge {
    pointer-events: none;
}
/* Hide setup notice when connected */
.setup-notice {
    transition: opacity 0.5s ease;
}

body.connected .setup-notice {
    display: none;
}

/* Password validation styling */
.form-group input[type="password"]:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(46, 109, 159, 0.1);
}

.form-group input[type="password"].invalid {
    border-color: #dc3545;
}

.form-group input[type="password"].valid {
    border-color: #28a745;
}

#passwordMatchMessage {
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

/* Add to styles.css for better email validation feedback */
#registerEmail.valid {
    border-color: #28a745;
}

#registerEmail.invalid {
    border-color: #dc3545;
}

#emailFeedback {
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary-hover);
    box-shadow: 0 0 0 3px rgba(88, 168, 142, 0.15);
}

.form-group input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Star Rating */
.star-rating {
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.star {
    color: #ddd;
    transition: color 0.2s;
    cursor: pointer;
    display: inline-block;
    margin: 0 5px;
}

.star:hover {
    color: #ffc107;
}

.star.filled {
    color: #ffc107;
}
/* ============================================
   ADD THESE TO YOUR styles.css
   Missing button utility classes
   ============================================ */

/* Small buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Warning button (yellow/orange) */
.btn-warning {
    background: var(--color-highlighter);
    color: #000;
    border: none;
}

.btn-warning:hover:not(:disabled) {
    background: var(--color-highlighter-hover);
    transform: translateY(-2px);
}

/* Success button (green) */
.btn-success {
    background: var(--color-success);
    color: white;
    border: none;
}

.btn-success:hover:not(:disabled) {
    background: var(--color-secondary-hover);
    transform: translateY(-2px);
}

/* Danger button (red) */
.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
}

/* Info button (blue) */
.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-2px);
}

/* Tool card layout - horizontal with image on right */
.tool-card .tool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

.tool-card .tool-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}

/* Tool card buttons - smaller */
.tool-card .btn-primary,
.tool-card .btn-secondary,
.tool-card button {
    padding: 7px 12px;
    font-size: 0.8rem;
}

.tool-card .tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MODERN CLEAN DESIGN - Inspired by Classy & Amplitude
   ============================================ */

/* White background for main content */
.main-content {
    background: #ffffff;
}

/* Tool cards clean styling */
.tool-card {
    background: var(--color-bg-card);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--color-secondary-hover);
}

/* Owner badge styling */
.owner-badge {
    display: inline-block;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 600;
}

/* ============================================
   DEFAULT THEME (fallback)
   ============================================ */
/* Moved to white background - see line 88 */
/*
body {
    background: #f5f5f5;
}

.header {
    background: var(--color-primary);
}
*/

/* ============================================
   DEPRECATED: Language-based theming
   Replaced by universal theme system with CSS variables
   These styles are no longer active but preserved for reference
   ============================================ */
/*
body[data-lang="en"] {
    background: #f8f8f8;
}

body[data-lang="en"] .header {
    background: #012169;
}

body[data-lang="en"] .nav-tab {
    color: #333;
    background: transparent;
}

body[data-lang="en"] .nav-tab:hover {
    background: rgba(1, 33, 105, 0.1);
    color: #012169;
}

body[data-lang="en"] .nav-tab.active {
    color: #012169;
    border-bottom-color: #C8102E;
    background: rgba(200, 16, 46, 0.08);
}

body[data-lang="en"] .owner-badge {
    background: #012169;
}

body[data-lang="en"] .btn-action,
body[data-lang="en"] .btn-book {
    background: #C8102E;
    color: white;
}

body[data-lang="en"] .btn-action:hover,
body[data-lang="en"] .btn-book:hover {
    background: #012169;
}

body[data-lang="hu"] {
    background: #f8f8f8;
}

body[data-lang="hu"] .header {
    background: #477050;
}

body[data-lang="hu"] .nav-tab {
    color: #333;
    background: transparent;
}

body[data-lang="hu"] .nav-tab:hover {
    background: rgba(71, 112, 80, 0.1);
    color: #477050;
}

body[data-lang="hu"] .nav-tab.active {
    color: #477050;
    border-bottom-color: #CE2939;
    background: rgba(206, 41, 57, 0.08);
}

body[data-lang="hu"] .owner-badge {
    background: #CE2939;
}

body[data-lang="hu"] .btn-action,
body[data-lang="hu"] .btn-book {
    background: #CE2939;
    color: white;
}

body[data-lang="hu"] .btn-action:hover,
body[data-lang="hu"] .btn-book:hover {
    background: #477050;
}

body[data-lang="de"] {
    background: #f8f8f8;
}

body[data-lang="de"] .header {
    background: #1a1a1a;
}

body[data-lang="de"] .nav-tab {
    color: #333;
    background: transparent;
}

body[data-lang="de"] .nav-tab:hover {
    background: rgba(221, 0, 0, 0.1);
    color: #DD0000;
}

body[data-lang="de"] .nav-tab.active {
    color: #DD0000;
    border-bottom-color: #FFCC00;
    background: rgba(255, 204, 0, 0.15);
}

body[data-lang="de"] .owner-badge {
    background: #DD0000;
}

body[data-lang="de"] .btn-action,
body[data-lang="de"] .btn-book {
    background: #DD0000;
    color: white;
}

body[data-lang="de"] .btn-action:hover,
body[data-lang="de"] .btn-book:hover {
    background: #1a1a1a;
}
*/

/* ============================================
   LANGUAGE THEME ACCENTS
   Accent colors only - keeps main blue theme
   Only active when data-theme="language-default"
   ============================================ */
body[data-theme="language-default"][data-lang="en"] .nav-tab.active {
    border-bottom-color: #FC3232;  /* UK Red */
    animation: shimmer-red 2s ease-in-out infinite;
}

body[data-theme="language-default"][data-lang="hu"] .nav-tab.active {
    border-bottom-color: #58A88E;  /* HU Green */
    animation: shimmer-green 2s ease-in-out infinite;
}

body[data-theme="language-default"][data-lang="de"] .nav-tab.active {
    border-bottom-color: #FFCE00;  /* DE Yellow */
    animation: shimmer-yellow 2s ease-in-out infinite;
}

/* ============================================
   PAYMENT BUTTONS - Keep Blue
   ============================================ */
.btn-primary,
/* BRAND ELEMENT - Preserved gradient for payment buttons */
button.btn-primary,
.btn-payment {
    background: linear-gradient(135deg, var(--color-brand-gradient-start) 0%, var(--color-brand-gradient-end) 100%) !important;
    color: white !important;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
/* BRAND ELEMENT - Green gradient */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #3d8b5c 100%);
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 12px;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ============================================
   SEARCH & FILTER STYLING
   ============================================ */
.search-input,
.filter-select {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
}

.search-input:focus,
.filter-select:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(46, 109, 159, 0.15);
}

/* ============================================
   MODAL STYLING
   ============================================ */
.modal-content {
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 1px solid #e0e0e0;
    background: white;
}

/* ============================================
   BOOKING ITEMS
   ============================================ */
.booking-item {
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ============================================
   CENTER ALERTS - Toast Notifications
   ============================================ */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.alert.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

/* Alert backdrop */
.alert-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-backdrop.show {
    opacity: 1;
}

/* ============================================
   TYPOGRAPHY - Black text
   ============================================ */
body, p, span, div {
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
}

/* Section headings with green accent */
.section h2 {
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-secondary);
    margin-bottom: 25px;
}

/* ============================================
   NAV TABS - Clean Modern Style
   ============================================ */
.nav-tabs {
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    padding: 5px;
    border-bottom: 2px solid #e5e5e5;
}

.nav-tab {
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 2px;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }

    /* Header mobile layout */
    .header {
        padding: 10px;
        position: relative;
    }

    /* First row: Logo/Lang column + Tagline */
    .header-top-row {
        display: flex;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Left column: Logo stacked on top of language selector */
    .header-left-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .header-logo-container {
        position: static;
        transform: none;
    }

    .header-logo {
        height: 40px;
    }

    /* Language selector under logo - small buttons */
    .header-left-column .language-selector {
        margin-top: 3px;
        gap: 3px !important;
    }

    .header-left-column .language-selector .lang-btn {
        padding: 3px 9px !important;
        font-size: 0.65rem !important;
        min-width: unset !important;
        border-width: 1px !important;
        border-radius: 4px !important;
        min-height: unset !important;
        height: auto !important;
    }

    .header-center {
        padding: 0;
        text-align: left;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    .header-center p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
    }

    /* Auth buttons, social links centered below */
    .auth-section-header,
    .user-section-header {
        position: static !important;
        justify-content: center !important;
        margin-bottom: 10px;
    }

    .social-links {
        justify-content: center;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px;
        border-radius: 15px;
    }

    /* Navigation - horizontal scroll */
    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tab {
        padding: 10px 15px;
        font-size: 0.85rem;
        display: inline-block;
    }

    /* Tools grid - 2 columns on tablet */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Search bar stack */
    .search-bar {
        flex-direction: column;
    }

    .search-input,
    .filter-select {
        width: 100%;
        min-width: unset;
    }

    /* Modal full width */
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 30px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .modal-content .form-group {
        margin-bottom: 15px;
    }

    .modal-content input[type="email"],
    .modal-content input[type="password"],
    .modal-content input[type="text"] {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .modal-content .btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    .modal-content .close-modal {
        top: 10px;
        right: 10px;
        font-size: 1.8rem;
    }

    /* Form rows stack */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stats grid */
    .stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Auth section */
    .auth-section {
        flex-direction: column;
        gap: 10px;
    }

    .auth-section .btn {
        width: 100%;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 15px;
        border-radius: 10px;
    }

    /* Navigation - smaller tabs */
    .nav-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Tools grid - 1 column on mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-card {
        padding: 12px;
        flex-direction: row;
        gap: 12px;
    }

    .tool-card .tool-image {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }

    .tool-card h3 {
        font-size: 1rem;
    }

    /* Booking items */
    .booking-item {
        padding: 15px;
    }

    /* Stats - single column */
    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    /* Buttons full width */
    .btn {
        width: 100%;
        padding: 12px;
    }

    /* Alert sizing */
    .alert {
        min-width: 90%;
        max-width: 95%;
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    /* User info section */
    .user-info {
        padding: 15px;
    }

    .user-info h3 {
        font-size: 1.1rem;
    }

    /* Form inputs */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Language buttons */
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Small mobile (360px and below) */
@media screen and (max-width: 360px) {
    .header h1 {
        font-size: 1.3rem;
    }

    .nav-tab {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .main-content {
        padding: 10px;
    }

    .tool-card {
        padding: 10px;
        gap: 10px;
    }

    .tool-card .tool-image {
        width: 85px;
        height: 85px;
        min-width: 85px;
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-tab,
    button {
        min-height: 44px; /* Apple's recommended touch target */
    }

    .tool-card:hover {
        transform: none; /* Disable hover effects on touch */
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }

    .header {
        padding: 10px 0;
    }

    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

/* ============================================
   CART STYLES
   ============================================ */

/* Cart Icon Button */
.cart-icon-btn {
    background: white;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 1.32rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.cart-icon-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.cart-badge {
    background: #FC3232;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Toggle Switch - Social Link Style */
.theme-toggle.social-link {
    position: relative;
}

.theme-toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle input:checked ~ .theme-toggle-icon {
    content: "☀️";
}

/* Change icon based on dark mode state */
[data-theme="dark"] .theme-toggle-icon {
    filter: brightness(1.2);
}

/* Hover effect for toggle */
.theme-toggle.social-link:hover .theme-toggle-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Cart Modal */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-secondary);
}

.cart-empty p:first-child {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--color-bg-soft);
    border: 2px solid var(--color-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin: 0 0 8px 0;
    color: var(--color-text-primary);
    font-size: 1.1rem;
}

.cart-item-dates {
    color: var(--color-primary);
    font-weight: 500;
    margin: 0 0 5px 0;
}

.cart-item-owner {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.cart-item-price {
    text-align: right;
    min-width: 120px;
}

.cart-item-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0 0 5px 0;
}

.cart-item-breakdown {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #FC3232;
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid var(--color-secondary);
    padding-top: 20px;
    margin-top: 20px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-total-row span:first-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cart-actions .btn {
    padding: 12px 24px;
}

/* Booking Actions (Pay Now vs Add to Cart) */
.booking-choice-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.booking-choice-actions .btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
}

.booking-choice-actions .btn-add-cart {
    background: var(--color-secondary);
    color: white;
    border: none;
}

.booking-choice-actions .btn-add-cart:hover {
    background: var(--color-secondary-hover);
}

/* Mobile responsive cart */
@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
    }

    .cart-item-price {
        text-align: left;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--color-border);
    }

    .cart-actions {
        flex-direction: column;
    }

    .booking-choice-actions {
        flex-direction: column;
    }
}

/* ============================================
   LEGAL CONSENT STYLING
   ============================================ */

/* Legal Document Modal */
.legal-doc-modal-content {
    max-width: 900px !important;
    width: 95% !important;
    height: 85vh !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    padding: 25px !important;
}

.legal-doc-container {
    flex: 1;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
    min-height: 400px;
    background: #f9f9f9;
}

.legal-doc-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.legal-doc-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-doc-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #fff3cd;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.scroll-arrow {
    animation: bounceDown 1s infinite;
    font-size: 1.2rem;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.legal-doc-actions {
    text-align: center;
}

/* Legal Consent Section in Registration Form */
.legal-consent-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    margin: 20px 0;
}

.legal-consent-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.legal-doc-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-doc-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: left;
    font-weight: 500;
}

.legal-doc-btn:hover {
    border-color: var(--color-primary, #4A8BBF);
    background: #f0f7ff;
    transform: translateX(3px);
}

.legal-doc-btn.read {
    border-color: #28a745;
    background: #e8f5e9;
}

.legal-doc-btn.read:hover {
    background: #d4edda;
}

.doc-icon {
    font-size: 1.4rem;
}

.doc-check {
    margin-left: auto;
    color: #28a745;
    font-weight: bold;
    font-size: 1.3rem;
    display: none;
}

/* Legal Checkbox */
.legal-checkbox-group {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.legal-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.legal-checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-secondary, #70BDA3);
    flex-shrink: 0;
}

.legal-checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.legal-consent-hint {
    display: block;
    margin-top: 10px;
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-doc-modal-content {
        width: 98% !important;
        height: 92vh !important;
        max-height: 92vh !important;
        padding: 15px !important;
    }

    .legal-doc-container {
        min-height: 300px;
    }

    .legal-doc-btn {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .legal-consent-section {
        padding: 15px;
    }

    .legal-checkbox-label {
        font-size: 0.85rem;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .legal-consent-section {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .legal-consent-section h4 {
    color: #F6F8FA;
}

[data-theme="dark"] .legal-doc-btn {
    background: #3d3d3d;
    border-color: #505050;
    color: #e0e0e0;
}

[data-theme="dark"] .legal-doc-btn:hover {
    background: #4d4d4d;
    border-color: var(--color-primary, #4A8BBF);
}

[data-theme="dark"] .legal-doc-btn.read {
    background: #1e3d1e;
    border-color: #28a745;
}

[data-theme="dark"] .legal-doc-container {
    border-color: #505050;
    background: #1a1a1a;
}

[data-theme="dark"] .legal-doc-scroll-indicator {
    background: #433f00;
    color: #ffe066;
}

[data-theme="dark"] .legal-checkbox-label {
    color: #F6F8FA;
}

[data-theme="dark"] .legal-checkbox-group {
    border-top-color: #505050;
}

/* ============================================
   SHOPPING CART BADGE
   ============================================ */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: cartBadgePulse 2s infinite;
}

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

[data-theme="dark"] .cart-badge {
    background: linear-gradient(135deg, #ff4d4d 0%, #e63946 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ============================================
   DEPOSIT FAQ PANEL
   Expandable FAQ about deposit holds
   ============================================ */
.deposit-faq {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-text-muted);
    border-radius: 8px;
    margin: 15px 0;
    transition: all 0.2s ease;
}

.deposit-faq summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-primary);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-faq summary::-webkit-details-marker {
    display: none;
}

.deposit-faq summary span {
    transition: transform 0.2s ease;
}

.deposit-faq[open] summary span {
    transform: rotate(90deg);
}

.deposit-faq > div {
    padding: 0 15px 15px 15px;
    animation: fadeIn 0.2s ease;
}

.deposit-faq strong {
    color: var(--color-text-primary);
}

.deposit-faq p {
    margin: 4px 0 0 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Dark theme support */
[data-theme="dark"] .deposit-faq {
    background: var(--color-bg-card);
    border-color: var(--color-text-muted);
}

[data-theme="dark"] .deposit-faq summary {
    color: var(--color-text-primary);
}

[data-theme="dark"] .deposit-faq strong {
    color: var(--color-text-primary);
}

[data-theme="dark"] .deposit-faq p {
    color: var(--color-text-secondary);
}

/* ============================================
   BOOKING STATUS TIMELINE
   Visual progress indicator for renters
   ============================================ */
.booking-timeline {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
}

.booking-timeline.timeline-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.booking-timeline.timeline-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-color: #dc3545;
}

.booking-timeline.timeline-expired {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-color: #ffc107;
}

.timeline-header {
    margin-bottom: 15px;
    text-align: center;
}

.timeline-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 10px;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.timeline-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-step-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
}

.timeline-step.active .timeline-step-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-color: var(--color-primary);
    color: white;
    animation: timelinePulse 2s infinite;
}

.timeline-step.cancelled .timeline-step-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
    color: white;
}

.timeline-step.expired .timeline-step-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-color: #ffc107;
    color: #000;
}

.timeline-step.pending .timeline-step-icon {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
}

.timeline-step-label {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.timeline-step.completed .timeline-step-label,
.timeline-step.active .timeline-step-label {
    color: var(--color-text-primary);
    font-weight: 500;
}

.timeline-connector {
    position: absolute;
    top: 20px;
    left: calc(50% + 25px);
    width: calc(100% - 50px);
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

.timeline-step.completed .timeline-connector {
    background: linear-gradient(90deg, #28a745 0%, #28a745 100%);
}

.timeline-step.active .timeline-connector {
    background: linear-gradient(90deg, #28a745 0%, #dee2e6 100%);
}

@keyframes timelinePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 109, 159, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(46, 109, 159, 0); }
}

/* Timeline Countdown */
.timeline-countdown {
    text-align: center;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.timeline-countdown.timeline-time-normal {
    background: #d4edda;
    color: #155724;
}

.timeline-countdown.timeline-time-warning {
    background: #fff3cd;
    color: #856404;
}

.timeline-countdown.timeline-time-urgent {
    background: #f8d7da;
    color: #721c24;
    animation: urgentPulse 1s infinite;
}

.timeline-countdown.timeline-time-expired {
    background: #f8d7da;
    color: #721c24;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Timeline Info Box */
.timeline-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.timeline-info p {
    margin: 0 0 8px 0;
}

.timeline-info ul {
    margin: 8px 0;
    padding-left: 20px;
}

.timeline-info li {
    margin: 4px 0;
    color: var(--color-text-secondary);
}

.timeline-reassurance {
    color: #155724 !important;
    font-weight: 500;
    margin-top: 10px !important;
}

.timeline-info-cancelled {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
}

/* Dark Theme Support */
[data-theme="dark"] .booking-timeline {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-color: #4a5568;
}

[data-theme="dark"] .booking-timeline.timeline-completed {
    background: linear-gradient(135deg, #1a4731 0%, #22543d 100%);
    border-color: #48bb78;
}

[data-theme="dark"] .booking-timeline.timeline-cancelled {
    background: linear-gradient(135deg, #4a1a1a 0%, #5c2020 100%);
    border-color: #fc8181;
}

[data-theme="dark"] .timeline-title {
    color: #e2e8f0;
}

[data-theme="dark"] .timeline-step-icon {
    background: #4a5568;
    border-color: #718096;
}

[data-theme="dark"] .timeline-step.pending .timeline-step-icon {
    background: #2d3748;
    border-color: #4a5568;
    color: #718096;
}

[data-theme="dark"] .timeline-connector {
    background: #4a5568;
}

[data-theme="dark"] .timeline-info {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .timeline-info li {
    color: #a0aec0;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .timeline-steps {
        padding: 0 5px;
    }

    .timeline-step-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .timeline-step-label {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .timeline-connector {
        top: 16px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }
}

/* ============================================
   EXPANDED FOOTER
   ============================================ */

.footer-expanded {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 3px solid var(--color-secondary);
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    opacity: 0.8;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin: 10px 0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 5px 0;
}

.footer-tagline {
    color: #888 !important;
    font-size: 0.8rem !important;
}

/* Footer Tablet Responsive */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column a:hover {
        transform: none;
    }
}

/* Footer Mobile Responsive */
@media (max-width: 480px) {
    .footer-expanded {
        padding: 30px 15px 15px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column h4 {
        margin-bottom: 10px;
    }

    .footer-column a {
        margin: 8px 0;
    }

    .footer-logo img {
        height: 50px;
    }
}

/* Footer Dark Mode */
[data-theme="dark"] .footer-expanded {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top-color: var(--color-secondary);
}

[data-theme="dark"] .footer-column h4 {
    color: var(--color-secondary);
}

[data-theme="dark"] .footer-column a {
    color: #aaa;
}

[data-theme="dark"] .footer-column a:hover {
    color: var(--color-secondary);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #333;
}

[data-theme="dark"] .footer-bottom p {
    color: #888;
}

[data-theme="dark"] .footer-tagline {
    color: #666 !important;
}