/* Variables */
:root {
    --primary-color: #01A2B4;
    --primary-dark: #018c9a;
    --text-color: #2d3748;
    --border-color: #ddd;
    --primary-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --heading-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Additional brand colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Bootstrap Customization */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: var(--primary-font);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:focus, .btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(1, 162, 180, 0.25);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Header Styles */
.header {
    background: var(--gray-800);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--gray-700);
    position: relative;
    z-index: 10;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0px;
    flex-shrink: 0;
    color: white;
    transition: all 0.2s ease;
}

.logo:hover {
    text-decoration: none;
    color: white;
}

.logo img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.35rem;
}

.logo-step {
    color: white;
    transition: color 0.2s ease;
}

.logo-hopper {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.logo:hover .logo-step {
    color: #e5e7eb;
}

.logo:hover .logo-hopper {
    color: var(--primary-color);
}

/* Responsive header styles */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        min-height: 40px;
        padding: 0 12px;
    }

    .logo {
        font-size: 1rem;
        gap: 5px;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 360px) {
    .header-content {
        min-height: 36px;
        padding: 0 10px;
    }

    .logo {
        font-size: 0.9rem;
        gap: 4px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo img {
        width: 28px;
        height: 28px;
    }
}

/* Navigation */
.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-family: var(--primary-font);
    font-weight: 500;
    color: var(--text-color);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logout-btn {
    color: var(--gray-600);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: var(--primary-font);
}

.logout-btn:hover {
    background: var(--gray-100);
    color: var(--text-color);
    text-decoration: none;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--heading-font);
    font-weight: 600;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--primary-font);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--primary-font);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 162, 180, 0.25);
}

.form-label {
    font-family: var(--primary-font);
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

/* Messages */
.message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-family: var(--primary-font);
}

.message.success, .alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error, .alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* Guide Specific Styles */
.step-container {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--primary-font);
    margin-right: 12px;
}

/* Step number circles will use templated brand color from guide pages */

.step-description-text {
    font-family: var(--primary-font);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    font-weight: 500;
    flex: 1;
    margin-left: 15px;
    max-width: calc(100% - 140px); /* Prevent overlap with action icons */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Editable Guide Step Header (keep existing format) */
.step-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-family: var(--primary-font);
    margin-right: 120px; /* Increased space for all action icons */
    position: relative;
}

.step-description-text {
    min-width: 200px; /* Prevent shrinking */
    width: 100%;
}

/* Prevent shrinking behavior on editable elements */
.editable {
    min-width: inherit;
    box-sizing: border-box;
}

.editable:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
    transform: none !important;
    width: 100% !important;
    min-width: inherit !important;
}



.step-image-container {
    position: relative;
    margin: 15px 0;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
    display: block;
}

/* Highlight Styles */
.highlight-overlay {
    position: absolute;
    border: 3px solid var(--primary-color);
    background: rgba(1, 162, 180, 0.15);
    border-radius: 6px;
    pointer-events: auto;
    cursor: move;
    transition: all 0.2s ease;
}

.highlight-overlay:hover {
    border-color: var(--primary-dark);
    background: rgba(1, 140, 154, 0.2);
}

.add-highlight-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--primary-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.add-highlight-btn:hover {
    background: var(--primary-dark);
}

/* Dashboard Styles */
.dashboard-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-family: var(--primary-font);
    opacity: 0.9;
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--primary-font);
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .header-content {
        padding: 0 15px;
    }

    .user-info {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-stats {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .settings-section {
        margin: 0 15px 30px 15px;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .setting-info {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 12px;
    }
}

@media (max-width: 360px) {
    .header-content {
        padding: 0 10px;
    }
}

/* Utility Classes */
.text-muted {
    color: var(--gray-500) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border {
    border: 1px solid var(--border-color) !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-primary {
    color: var(--primary-color);
}

/* Dashboard Page Styles */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    min-height: calc(100vh - 140px);
}

.welcome {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(1, 162, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.welcome h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.welcome p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(1, 162, 180, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-card div:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guides-section {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(1, 162, 180, 0.05);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.guide-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #667eea);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(1, 162, 180, 0.2);
}

.guide-card:hover::before {
    transform: scaleX(1);
}

.guide-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.3rem;
    line-height: 1.4;
}

.guide-meta {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-meta::before {
    content: '📋';
    font-size: 0.85rem;
}

.guide-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.guide-actions a {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 162, 180, 0.3);
}

.guide-actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 162, 180, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.delete-btn:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.guide-subsection {
    margin-bottom: 50px;
}

.guide-subsection h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 2px solid var(--gray-100);
}

.guide-subsection h3 span {
    font-size: 1.3rem;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: var(--gray-500);
    background: linear-gradient(135deg, var(--gray-50), white);
    border-radius: 20px;
    border: 2px dashed var(--gray-200);
}

.empty-state h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-state .cta-button {
    padding: 18px 35px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(1, 162, 180, 0.3);
}

.empty-state::before {
    content: '🚀';
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* Settings styles */
.settings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    margin: 0 0 25px 0;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.settings-header {
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    user-select: none;
}

.settings-header:hover {
    background: var(--gray-100);
}

.settings-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-header h2::before {
    content: '⚙️';
    font-size: 1rem;
}

.settings-toggle {
    font-size: 1.2rem;
    color: var(--gray-500);
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.settings-toggle.expanded {
    transform: rotate(180deg);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.settings-content.expanded {
    max-height: 500px; /* Adjust as needed */
}

.settings-form {
    padding: 20px;
    margin: 0;
}

.setting-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-info {
    min-width: 0;
}

.setting-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
    display: block;
    font-family: var(--primary-font);
    font-size: 0.95rem;
}

.setting-description {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
    font-family: var(--primary-font);
    line-height: 1.4;
}

.setting-control {
    justify-self: end;
}

.color-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.color-input {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.hex-input {
    width: 75px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
    text-align: center;
}

.hex-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(1, 162, 180, 0.1);
}

.save-settings-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--primary-font);
    white-space: nowrap;
}

.save-settings-btn:hover {
    background: var(--primary-dark);
}

.reset-brand-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--primary-font);
    margin-left: 6px;
    white-space: nowrap;
}

.reset-brand-btn:hover {
    background: #5a6268;
}

/* Guide Page Styles */
.guide-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.guide-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.guide-header h1 {
    font-family: var(--primary-font);
}

.guide-description {
    margin: 15px 0;
    color: #666;
    font-family: var(--primary-font);
    font-style: normal;
}

.export-buttons {
    margin: 20px 0;
}

.export-buttons button {
    padding: 12px 24px;
    margin: 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.export-buttons button:hover {
    background: var(--primary-dark);
}

.step {
    background: white;
    border-radius: 10px;
    margin: 20px 0;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.step-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.step-image-container {
    position: relative;
    margin: 15px 0;
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
    display: block;
}

.step-meta {
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
}

/* Share Info Styles */
.share-info {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.share-info h4 {
    color: #2e7d32;
    margin-bottom: 10px;
}

.share-info input,
.share-info textarea {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.share-info textarea {
    height: 60px;
    font-family: monospace;
    font-size: 0.8rem;
    resize: vertical;
}

.share-info button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
}

.share-info button:hover {
    background: #45a049;
}

/* Remove action-highlight specific CSS - automatic highlights now use user-highlight class */

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

/* Interactive Highlight Overlays for Editable Guides */
.highlight-overlay {
    position: absolute;
    cursor: move;
    user-select: none;
    z-index: 15;
    border: 3px solid #FF6B6B;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.15);
    animation: highlightPulse 2s infinite;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Published Guide Highlight Overlays - No Interaction */
.guide-main .highlight-overlay {
    pointer-events: none;
    cursor: default;
    box-shadow: none;
}

.mask-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333;
    cursor: move;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 100px;
    min-height: 50px;
    color: white;
    font-size: 12px;
}

.mask-overlay::before {
    content: "🔒 REDACTED";
    font-weight: bold;
    font-size: 10px;
}

.highlight-overlay:hover {
    background: rgba(255, 68, 68, 0.4);
    border-color: #333;
}

.highlight-overlay.dragging {
    z-index: 20;
    transform: scale(1.1);
}

/* Highlight Controls */
.highlight-controls {
    position: absolute;
    top: -30px;
    right: -10px;
    display: flex;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.highlight-overlay:hover .highlight-controls {
    opacity: 1;
}

.highlight-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.highlight-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.highlight-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.add-highlight-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.add-highlight-btn:hover {
    background: var(--primary-dark);
}

.pointer-btn {
    background: #ff6b35;
}

.pointer-btn:hover {
    background: #e55a2b;
}

/* Pointer Highlight Styles */
.pointer-highlight {
    position: absolute;
    cursor: move;
    user-select: none;
    z-index: 15;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    font-size: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.pointer-highlight:hover {
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.7));
    transform: scale(1.05);
}

.pointer-highlight.dragging {
    z-index: 20;
    transform: scale(1.1);
}

.pointer-highlight .highlight-controls {
    top: -35px;
    right: -15px;
}

/* Inline Editing Styles */
.editable {
    cursor: pointer;
    position: relative;
}

.editable.editing {
    background: white;
    border: 2px solid var(--primary-color);
}

.edit-input {
    border: none;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    width: 100%;
}

.edit-textarea {
    border: none;
    background: transparent;
    font-size: inherit;
    color: inherit;
    width: 100%;
    resize: vertical;
    min-height: 60px;
}

.step-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
    z-index: 10;
}

.step:hover .step-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    background: #666;
    color: white;
    border: none;
    padding: 4px 8px;
    margin-left: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.action-btn:hover {
    background: #555;
}

.action-btn.delete {
    background: #dc3545;
}

.action-btn.delete:hover {
    background: #c82333;
}

.back-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-btn:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Published Guide Styles */
.published-badge {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.embed-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.embed-code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    margin: 10px 0;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Custom Confirmation Dialog */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.confirm-dialog h4 {
    margin: 0 0 12px 0;
    color: var(--text-color);
    font-family: var(--heading-font);
}

.confirm-dialog p {
    margin: 0 0 20px 0;
    color: var(--gray-600);
    font-family: var(--primary-font);
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: var(--gray-300);
}

.btn-confirm {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--primary-font);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-confirm:hover {
    background: #c82333;
}

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

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

/* Hamburger Menu */
.hamburger-menu {
    position: static;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    z-index: 999;
    flex-shrink: 0;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive hamburger */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .hamburger-menu span {
        width: 18px;
    }
}

@media (max-width: 360px) {
    .hamburger-menu {
        width: 30px;
        height: 30px;
        padding: 6px;
    }

    .hamburger-menu span {
        width: 16px;
        height: 2px;
    }
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #e5e7eb;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu:hover span {
    background: white;
}

.hamburger-menu:hover {
    transform: translateY(-1px);
}



/* Default hamburger for logged-out users (white on dark header) remains the same */

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

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background: white;
    z-index: 1200;
    transition: right 0.3s ease;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    right: 0;
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 30px;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: var(--gray-200);
    color: var(--text-color);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar-user-info {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: var(--primary-font);
    font-size: 1.1rem;
}

.user-email {
    color: var(--text-color);
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--primary-font);
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    text-decoration: none;
}

.sidebar-menu i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--gray-50);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--error-color);
    text-decoration: none;
    font-family: var(--primary-font);
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-link:hover {
    color: #dc2626;
    text-decoration: none;
}

.logout-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }

    .hamburger-menu {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .hamburger-menu span {
        width: 22px;
    }
}