/* Steadily Custom CSS - Main stylesheet for the application */

/* ===== BRAND COLORS ===== */
:root {
    --midnight: #06283D;
    --brand-blue: #244364;
    --brand-teal: #256d85;
    --columbia-blue: #47b5ff;
    --arctic: #dff6ff;
    --soft-orange: #F6BF50;
    --minty-blue: #a2e5e4;
    --error-red: #e9072b;
    
    /* Neutral colors */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    --border-gray: #dee2e6;
}

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===== HEADER AND NAVIGATION ===== */
.header {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--brand-blue) 100%);
    box-shadow: 0 2px 10px rgba(6, 40, 61, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 120px; /* Prevent overly wide logos */
}

/* High-DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        /* Could use the @4x version for retina displays if needed */
    }
}

.logo-text {
    display: inline-block;
}

/* Hide logo image if it fails to load - fallback to text */
.logo-image:not([src]), 
.logo-image[src=""] {
    display: none;
}

/* Hide text by default when logo image is present */
.logo-image + .logo-text {
    display: none;
}

/* Show text when logo is explicitly hidden or fails */
.logo-image.logo-hidden + .logo-text,
.logo-image.logo-error + .logo-text {
    display: inline-block !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--arctic);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background-color: var(--brand-teal);
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .hamburger-menu {
        display: flex;
        order: 2;
        /* Make hamburger more tappable */
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .logo {
        order: 1;
        font-size: 1.3rem;
    }
    
    .logo-image {
        height: 28px; /* Slightly smaller on mobile */
    }
    
    .user-menu {
        order: 3;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--midnight);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(6, 40, 61, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 999;
        /* Hide by default */
        display: none;
    }
    
    .nav-menu.mobile-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: flex !important;
        background: var(--midnight) !important;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--brand-teal);
        transform: none;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 26px; /* Even smaller on tiny screens */
    }
    
    /* Fallback: show text if logo fails to load */
    .logo-image[style*="display: none"] + .logo-text {
        display: inline-block !important;
        font-size: 1.1rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    background: var(--columbia-blue);
    transform: translateY(-1px);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.dropdown-header strong {
    display: block;
    color: var(--midnight);
    font-size: 0.9rem;
}

.dropdown-header small {
    color: var(--medium-gray);
    font-size: 0.8rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--midnight);
}

.dropdown-item.logout-item:hover {
    background: #f8d7da;
    color: #721c24;
}

.dropdown-icon {
    font-size: 1rem;
    width: 1rem;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 0.5rem 0;
}

/* ===== MAIN CONTENT ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 70px);
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--midnight);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--brand-teal);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 181, 255, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--border-gray);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--midnight);
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-text:hover {
    background: var(--light-gray);
    color: var(--dark-gray);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    background: var(--light-gray);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 0.5rem;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    max-height: 1000px;  /* Large enough to fit content */
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
}

.form-group.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(37, 109, 133, 0.1);
}

.help-text {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
    display: block;
}

/* ===== STATUS INDICATORS ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.25rem;
}

.status-pending {
    background: var(--soft-orange);
    color: var(--midnight);
}

.status-approved {
    background: var(--minty-blue);
    color: var(--midnight);
}

.status-processing {
    background: var(--midnight);
    color: var(--white);
}

.status-error {
    background: var(--error-red);
    color: var(--white);
}

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

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

.status-coming-soon {
    background: #fff3cd;
    color: #856404;
}

.status-enabled {
    color: var(--brand-teal);
    font-weight: 600;
}

/* ===== SETTINGS PAGE SPECIFIC ===== */

/* Property Selector */
.property-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.property-controls-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.property-controls-right {
    display: flex;
    align-items: center;
}

.property-label {
    font-weight: 600;
    color: var(--midnight);
    margin: 0;
}

.property-select {
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--border-gray);
    background: var(--white);
    color: var(--midnight);
    font-size: 0.9rem;
    min-width: 200px;
}

/* Automation Status */
.automation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--border-gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.status-active {
    background: var(--brand-teal);
    animation: pulse-gentle 2s infinite;
}

.status-dot.status-inactive {
    background: var(--medium-gray);
}

.status-dot.status-incomplete {
    background: var(--soft-orange);
}

.status-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--midnight);
    white-space: nowrap;
}

.btn-toggle {
    background: var(--columbia-blue);
    color: var(--white);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-toggle:hover {
    background: var(--brand-teal);
    transform: translateY(-1px);
}

.btn-toggle.disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.add-property-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--brand-teal);
    border-bottom-color: var(--brand-teal);
}

.tab-content {
    display: none;
    width: 100%;
}

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


/* Warning Badges */
.warning-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--error-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Configuration Status */
.setup-status-card {
    background: linear-gradient(135deg, var(--arctic), var(--white));
    border: 1px solid var(--columbia-blue);
    margin-bottom: 2rem;
}

.progress-section {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-teal), var(--columbia-blue));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--brand-teal);
    font-weight: 600;
}

.checklist-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.checklist-column h4 {
    color: var(--midnight);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-gray);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.checklist-item .status-icon {
    font-size: 1rem;
}

.item-complete {
    color: var(--medium-gray);
}

.item-incomplete {
    color: var(--midnight);
    font-weight: 500;
}

/* Configuration Warnings */
.config-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.warning-icon {
    font-size: 1.2rem;
}

.warning-text {
    color: #856404;
    font-weight: 500;
}

/* Settings Drawers */
.settings-drawer {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.settings-drawer:hover {
    border-color: var(--columbia-blue);
    box-shadow: 0 2px 8px rgba(71, 181, 255, 0.08);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.drawer-header:hover {
    background: var(--light-gray);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drawer-title h3 {
    margin: 0;
    color: var(--midnight);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.drawer-summary {
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
}

.drawer-toggle {
    color: var(--brand-teal);
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-top: 1px solid transparent;
    padding: 0 1rem;
}

.drawer-content.expanded {
    max-height: 2000px;  /* Large enough to fit content */
    padding: 1rem;
    border-top-color: var(--border-gray);
}

/* Form Layouts */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

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

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit {
    color: var(--medium-gray);
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.input-prefix {
    position: absolute;
    left: 0.75rem;
    color: var(--medium-gray);
    font-weight: 500;
    z-index: 1;
}

.input-with-prefix input {
    padding-left: 2rem;
}

/* ===== PLAN CARDS ===== */
.plans-section {
    margin-top: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.plan-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.plan-card.current-plan {
    border-color: var(--brand-teal);
    background: var(--arctic);
}

.plan-card.featured-plan {
    border-color: var(--brand-teal);
    border-width: 3px;
    transform: scale(1.02);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-teal);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-badge.recommended {
    background: var(--columbia-blue);
    color: var(--midnight);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0.5rem 0;
}

.plan-price {
    margin: 1rem 0;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-teal);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-left: 0.25rem;
}

.plan-features {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-features .feature-included {
    color: var(--midnight);
}

.plan-features .feature-limited {
    color: var(--medium-gray);
}

.plan-action {
    margin-top: auto;
    text-align: center;
}

.plan-action .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.upgrade-note {
    display: block;
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* Promo Code Section */
.promo-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--arctic);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.promo-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--midnight);
    margin-bottom: 0.5rem;
    display: block;
}

.promo-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 0.85rem;
}

.promo-result {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

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

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

.promo-result.loading {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Enterprise Section */
.enterprise-section {
    margin-top: 2rem;
}

.enterprise-card {
    background: linear-gradient(135deg, var(--midnight), var(--brand-teal));
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.enterprise-content h4 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.enterprise-content p {
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-gray);
    border-radius: 50%;
    border-top-color: var(--brand-teal);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .plan-card.featured-plan {
        transform: none;
    }
    
    .plan-price .price {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checklist-container {
        grid-template-columns: 1fr;
    }
    
    .drawer-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .drawer-summary {
        font-size: 0.8rem;
    }
    
    .property-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .property-controls-left,
    .property-controls-right {
        justify-content: center;
    }
    
    .automation-status {
        justify-content: center;
    }
} 

/* Color Picker Styles */
.color-picker-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.color-picker {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-picker label {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.color-picker input[type="color"] {
    width: 100px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker input[type="color"]:hover {
    border-color: var(--brand-teal);
    box-shadow: 0 2px 4px rgba(37, 109, 133, 0.1);
}

.color-picker input[type="color"]:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(37, 109, 133, 0.1);
}

.color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

/* Firefox */
.color-picker input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 3px;
} 

/* Radio Group Styles */
.radio-group-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    flex: 1;
}

.radio-option:hover {
    border-color: var(--brand-teal);
    background-color: rgba(37, 109, 133, 0.05);
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-label {
    font-weight: 600;
    color: var(--midnight);
    margin: 0;
}

.radio-option small {
    color: var(--medium-gray);
    font-size: 0.8rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .radio-group-inline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radio-option {
        min-width: auto;
    }
} 

/* Checkbox Styles */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: var(--brand-teal);
    background-color: rgba(37, 109, 133, 0.05);
}

.checkbox-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-gray);
    border-radius: 3px;
    background: white;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked {
    background-color: var(--brand-teal);
    border-color: var(--brand-teal);
}

.checkbox-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-option .checkbox-label {
    font-weight: 600;
    color: var(--midnight);
    margin: 0;
    flex: 1;
}

.checkbox-option small {
    color: var(--medium-gray);
    font-size: 0.8rem;
    line-height: 1.4;
    display: block;
    margin-top: 0.25rem;
}

/* ===== SOCIAL PLATFORMS TAB ===== */

.platforms-overview {
    margin-bottom: 2rem;
}

.platforms-overview h3 {
    color: var(--midnight);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.platform-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--columbia-blue);
}

.platform-card.platform-disabled {
    opacity: 0.6;
    background: var(--light-gray);
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.platform-details h4 {
    margin: 0;
    color: var(--midnight);
    font-size: 1.1rem;
    font-weight: 600;
}

.platform-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--midnight);
}

.platform-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.platform-description p {
    margin: 0;
}

@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .platform-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .platform-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat {
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-label {
        margin-bottom: 0;
    }
}

/* ===== SUPPORT SYSTEM STYLES ===== */

/* Floating Help Button */
.floating-help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--columbia-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(37, 109, 133, 0.3);
    transition: all 0.3s ease;
    z-index: 1050;
    color: white;
    opacity: 0.9;
}

.floating-help-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 109, 133, 0.4);
}

.floating-help-btn:active {
    transform: translateY(0);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-help-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-help-btn .tabler-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Support Modal Customizations */
.support-modal-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: 1050;
}

.support-modal {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.support-modal-header {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.support-modal-header .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.support-modal-header .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.support-modal-body {
    padding: 25px;
}

.support-form-group {
    margin-bottom: 20px;
}

.support-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--brand-blue);
}

.support-form-group select,
.support-form-group textarea,
.support-form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.support-form-group select:focus,
.support-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 2px rgba(37, 109, 133, 0.25);
}

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

.support-form-help {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #666;
}

.support-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.support-form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-form-actions button:not(.primary) {
    background: #f8f9fa;
    color: #6c757d;
}

.support-form-actions button:not(.primary):hover {
    background: #e9ecef;
}

.support-form-actions button.primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--columbia-blue) 100%);
    color: white;
}

.support-form-actions button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 109, 133, 0.3);
}

.support-form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Support messages */
#support-messages .notice {
    margin: 15px 0;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

#support-messages .notice-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #155724;
}

#support-messages .notice-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--brand-blue) 100%);
    color: var(--white);
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(6, 40, 61, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    max-width: 120px;
}

.footer-logo-text {
    display: inline-block;
}

/* Hide footer logo image if it fails to load - fallback to text */
.footer-logo-image:not([src]), 
.footer-logo-image[src=""] {
    display: none;
}

/* Hide text by default when logo image is present */
.footer-logo-image + .footer-logo-text {
    display: none;
}

/* Show text when logo is explicitly hidden or fails */
.footer-logo-image.logo-hidden + .footer-logo-text,
.footer-logo-image.logo-error + .footer-logo-text {
    display: inline-block !important;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
    text-align: right;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer-container {
        padding: 1rem;
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        gap: 0;
        flex-direction: column;
        width: 100%;
    }
    
    .footer-link {
        font-size: 0.9rem;
        padding: 0.125rem 0;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .footer-copyright {
        text-align: center;
        margin-top: 0.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-nav {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Ensure footer stays at bottom for public pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    flex: 1;
}

/* ===== INTELLIGENT STRATEGY SECTION ===== */
.intelligent-strategy {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 4rem 0;
}

.strategy-feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.strategy-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.strategy-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
}

.strategy-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.strategy-closing {
    font-size: 1.1rem;
    color: var(--brand-blue);
    margin: 0;
    padding: 2rem 1rem 0;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: 4rem 0;
    background: var(--white);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 180px;
    flex: 1;
    min-width: 160px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--columbia-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(36, 67, 100, 0.2);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.step-arrow {
    color: var(--columbia-blue);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 1rem;
    flex-shrink: 0;
}

/* Responsive adjustments for How It Works */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .step-item {
        max-width: 250px;
    }
} 