/**
 * Main Stylesheet
 * Based on the provided design layout
 */

:root {
    /* Color Scheme */
    --color-primary: #f95100;
    --color-primary-dark: #0052A3;
    --color-primary-light: #E6F2FF;
    --color-text-dark: #1a1a1a;
    --color-text-light: #666666;
    --color-bg-light: #F8F8F8;
    --color-bg-white: #FFFFFF;
    --color-border: #E0E0E0;
    --color-coral: #f95100;
    --color-coral-dark: #EE5A52;
    
    /* Typography */
    --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header Styles */
.main-header {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.user-name {
    color: var(--color-text-dark);
    font-size: 0.95rem;
    margin-right: var(--spacing-sm);
    font-weight: 500;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

/* Subscribe Button - White with border */
.btn-subscribe {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
}

.btn-subscribe:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-text-light);
}

.btn-subscribe .icon-envelope {
    color: var(--color-text-dark);
}

/* Sign In Button - Coral red */
.btn-signin {
    background-color: var(--color-coral);
    color: white;
}

.btn-signin:hover {
    background-color: var(--color-coral-dark);
}

.btn-signin .icon-arrow {
    color: white;
}

/* Primary Button - Blue */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1f17b0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-light);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-left {
    max-width: 600px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-form {
    margin-top: var(--spacing-lg);
}

.demo-form {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 81, 0, 0.1);
}

/* Hero Right - Visual Section */
.hero-right {
    background-color: var(--color-primary-light);
    border-radius: 8px;
    padding: var(--spacing-lg);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    width: 100%;
}

.preview-card {
    background-color: var(--color-bg-white);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loyalty-card .card-header h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    border: 2px solid var(--color-primary);
}

.user-info {
    text-align: center;
}

.user-info .points,
.user-info .tier {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin: 0.25rem 0;
}

.mobile-app .app-header h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}

.app-content {
    font-size: 0.85rem;
}

.greeting {
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.reward-badge {
    background-color: #28a745;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    text-align: center;
}

.task-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.task-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: var(--color-bg-light);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-text-dark);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: var(--spacing-sm);
    }
    
    .widget-preview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .demo-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Authentication Pages */
.auth-section {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background-color: var(--color-bg-white);
}

.auth-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.auth-left {
    max-width: 450px;
}

.auth-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-lg);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.auth-form {
    margin-bottom: var(--spacing-md);
}

.auth-form .form-group {
    margin-bottom: var(--spacing-md);
}

.auth-form .form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-text-light);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-sans);
    background-color: var(--color-bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 81, 0, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--color-text-light);
}

.input-dots {
    position: absolute;
    right: 1rem;
    color: var(--color-text-light);
    pointer-events: none;
    font-size: 1.2rem;
    line-height: 1;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--color-text-dark);
}

.password-toggle .toggle-icon {
    width: 20px;
    height: 20px;
}

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.auth-links {
    margin-top: var(--spacing-md);
}

.auth-links p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.terms-text {
    font-size: 0.85rem;
}

/* Auth Right - Text Content with Subtle Gradient Background */
.auth-right {
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #E8F4F8 0%, #E0F2E8 100%);
    border-radius: 12px;
    overflow: hidden;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(200, 220, 235, 0.1) 20px,
            rgba(200, 220, 235, 0.1) 40px
        );
    opacity: 0.4;
    pointer-events: none;
}

.auth-text-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.auth-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    font-weight: 400;
    margin: 0;
}

.auth-tagline {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    text-align: left;
    line-height: 1.2;
    margin: 0;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Auth Pages */
@media (max-width: 968px) {
    .auth-content {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .auth-right {
        display: none;
    }
    
    .auth-left {
        max-width: 100%;
    }
    
    .auth-tagline {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-tagline {
        font-size: 2rem;
    }
}

/* Onboarding Page */
.onboarding-section {
    padding: var(--spacing-lg) 0;
    min-height: calc(100vh - 80px);
    background-color: var(--color-bg-white);
}

.onboarding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-back svg {
    width: 20px;
    height: 20px;
}

.onboarding-steps {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E0E0E0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: var(--color-primary);
}

.step-dot.active.current {
    background-color: var(--color-primary);
    border-color: rgba(249, 81, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(249, 81, 0, 0.1);
}

.onboarding-content {
    max-width: 800px;
    margin: 0 auto;
}

.onboarding-intro {
    margin-bottom: var(--spacing-xl);
}

.onboarding-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.onboarding-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group-onboarding {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group-onboarding label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-group-onboarding label .required {
    color: #dc3545;
}

.field-explanation {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}


.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 81, 0, 0.1);
}


.verification-message {
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

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

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

/* Onboarding Section Divider */
.onboarding-section-divider {
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}

.section-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

.form-actions > :first-child:only-child {
    margin-left: auto;
}

.form-actions .btn-primary {
    min-width: 200px;
    background-color: var(--color-coral);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions .btn-primary .icon-arrow {
    color: white;
    flex-shrink: 0;
}

.form-actions .btn-primary:hover {
    background-color: var(--color-coral-dark);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-text-light);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 260px;
    background-color: #f8f9fa;
    border-right: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.sidebar-plan-info {
    margin-bottom: var(--spacing-md);
}

.plan-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.plan-usage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.btn-upgrade {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.sidebar-nav {
    padding: 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-item.active .nav-link {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.nav-link svg {
    flex-shrink: 0;
    color: var(--color-text-dark);
}

.nav-link span {
    flex: 1;
}

.nav-arrow {
    margin-left: auto;
    opacity: 0.5;
}

.dashboard-main {
    flex: 1;
    padding: var(--spacing-xl);
    background-color: white;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-welcome {
    flex: 1;
}

.dashboard-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.2;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.dashboard-plan-info {
    text-align: right;
}

.plan-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

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

.plan-link:hover {
    text-decoration: underline;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Services Grid - Double Column */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-box-full {
    grid-column: 1 / -1;
}

/* Service Box */
.service-box {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-box.connected {
    border-color: var(--color-primary);
    background-color: #f8f9ff;
}

.service-box-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: 10px;
    color: var(--color-text-dark);
    flex-shrink: 0;
}

.service-box.connected .service-icon {
    background-color: var(--color-primary);
    color: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0;
}

.service-box-content {
    flex: 1;
    margin-bottom: var(--spacing-md);
}

.service-url {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0 0 var(--spacing-xs) 0;
    word-break: break-all;
}

.service-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.5;
}

.service-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-status.connected {
    background-color: #d4edda;
    color: #155724;
}

.service-status.disconnected {
    background-color: #f8d7da;
    color: #721c24;
}

.service-status.warning {
    background-color: #fff3cd;
    color: #856404;
}

.service-box-actions {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.btn-service {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-service:hover {
    background-color: #1f17b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hide main header navigation on dashboard */
.dashboard-layout ~ .main-header {
    /* Already hidden by body class */
}

body.dashboard-page .main-header .main-nav {
    display: none;
}

body.dashboard-page .main-header .header-actions {
    /* Keep user actions visible */
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-md) 0;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-md);
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .dashboard-plan-info {
        text-align: left;
        width: 100%;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Responsive Onboarding */
@media (max-width: 768px) {
    .onboarding-title {
        font-size: 2rem;
    }
    
    .onboarding-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .onboarding-steps {
        width: 100%;
        justify-content: center;
    }
    
    .form-input {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Edit Website Form */
.edit-website-form {
    max-width: 800px;
    margin: 0 auto;
}

.edit-website-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.edit-website-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
    font-size: 1rem;
}

.form-help {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* Widget Script Section */
.widget-script-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.widget-script-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-sans);
}

.widget-script-help {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.widget-script-container {
    position: relative;
}

.widget-script-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-sm);
}

.form-textarea {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
    color: var(--color-text-dark);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-textarea:focus {
    outline: none;
    border-color: #BDBDBD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
}

.form-textarea-readonly {
    background-color: #FFFFFF;
    color: var(--color-text-dark);
    cursor: text;
    user-select: all;
    border-color: #E0E0E0;
}

.form-textarea-readonly:focus {
    background-color: #FFFFFF;
    border-color: #BDBDBD;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-copy {
    padding: 0.625rem 1.25rem;
    background-color: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-copy.copied {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.btn-copy svg {
    flex-shrink: 0;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.btn-secondary {
    padding: 0.875rem 1.75rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

