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

:root {
    /* HubSpot Color Palette */
    --hubspot-orange: #ff7a59;
    --hubspot-orange-hover: #ff6347;
    --hubspot-blue: #0091ae;
    --hubspot-blue-hover: #007a96;
    --hubspot-dark-blue: #33475b;
    --hubspot-navy: #2d4563;
    --hubspot-gray-100: #f5f8fa;
    --hubspot-gray-200: #eaf0f6;
    --hubspot-gray-300: #cbd6e2;
    --hubspot-gray-400: #99acc2;
    --hubspot-gray-500: #7c98b6;
    --hubspot-gray-600: #516f90;
    --hubspot-gray-700: #425b76;
    --hubspot-gray-800: #33475b;
    --hubspot-gray-900: #1b2834;
    
    /* Primary Colors */
    --primary-color: var(--hubspot-orange);
    --primary-hover: var(--hubspot-orange-hover);
    --secondary-color: var(--hubspot-blue);
    --secondary-hover: var(--hubspot-blue-hover);
    --danger-color: #e85d75;
    --danger-hover: #d64570;
    --success-color: #00a4bd;
    
    /* Background & Surface */
    --background: var(--hubspot-gray-100);
    --surface: #ffffff;
    --surface-alt: var(--hubspot-gray-200);
    
    /* Text Colors */
    --text-primary: var(--hubspot-gray-900);
    --text-secondary: var(--hubspot-gray-600);
    --text-muted: var(--hubspot-gray-500);
    
    /* Border Colors */
    --border-color: var(--hubspot-gray-300);
    --border-light: var(--hubspot-gray-200);
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgba(45, 69, 99, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(45, 69, 99, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(45, 69, 99, 0.1), 0 4px 6px -2px rgba(45, 69, 99, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(45, 69, 99, 0.1), 0 10px 10px -5px rgba(45, 69, 99, 0.04);
    
    /* HubSpot specific */
    --nav-height: 56px;
    --sidebar-width: 240px;
    --content-max-width: 1200px;
    --border-radius: 3px;
    --border-radius-lg: 6px;
}

body {
    font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* HubSpot Header */
header {
    background-color: var(--hubspot-navy);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 100%;
    max-width: none;
}

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

.logo img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hubspot-gray-300);
    font-size: 13px;
    font-weight: 400;
}

.user-info strong {
    color: #ffffff;
    font-weight: 500;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-user {
    background-color: #dbeafe;
    color: #1e40af;
}

.role-admin {
    background-color: #fef3c7;
    color: #92400e;
}

/* Main Content */
main {
    min-height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    padding: 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Grid */
.features {
    padding: 4rem 0;
}

.features h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Auth Container */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* HubSpot App Layout */
.app-container {
    display: flex;
    height: calc(100vh - var(--nav-height));
    max-width: none;
    margin: 0;
    gap: 0;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--surface);
    border-right: 1px solid var(--border-light);
    padding: 24px 0;
    height: 100%;
    position: fixed;
    left: 0;
    top: var(--nav-height);
    z-index: 100;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background-color: var(--surface-alt);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--hubspot-orange);
    color: white;
    box-shadow: var(--shadow);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--hubspot-orange);
}

.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background-color: var(--surface);
    padding: 32px;
    padding-top: 48px;
    max-width: var(--content-max-width);
    overflow-y: auto;
    height: 100%;
}

.content-section {
    display: none;
}

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

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

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

.stat-card {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Actions */
.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Test Results */
.test-results {
    margin-top: 2rem;
}

/* Test Setup Styles */
.test-setup {
    background: var(--background);
    padding: 0;
    border-radius: 8px;
    margin-top: 2rem;
}

.collapsible-header {
    width: 100%;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapsible-header:hover {
    background: var(--surface);
    border-color: var(--primary-color);
}

.collapsible-content {
    padding: 2rem;
    animation: slideDown 0.3s ease;
}

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

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

.test-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.test-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.test-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.test-card button {
    margin-top: 0.5rem;
    width: 100%;
}

.llm-test {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.llm-test input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.test-success {
    background: #10b981;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}

.test-success h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Todo Styles */
:root {
    --priority-high: #dc2626;
    --priority-medium: #f59e0b;
    --priority-low: #10b981;
    --completed-color: #6b7280;
    --overdue-color: #ef4444;
}

/* HubSpot Todos Header */
.todos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.todos-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--hubspot-orange);
    color: white;
    border: 1px solid var(--hubspot-orange);
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background-color: var(--hubspot-orange-hover);
    border-color: var(--hubspot-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* HubSpot Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 24px;
    background-color: var(--surface-alt);
    padding: 4px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.filter-tab {
    flex: 1;
    padding: 8px 16px;
    background: none;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    white-space: nowrap;
}

.filter-tab:hover {
    background-color: var(--surface);
    color: var(--text-primary);
}

.filter-tab.active {
    background-color: var(--surface);
    color: var(--hubspot-orange);
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* HubSpot Quick Add */
.quick-add {
    margin-bottom: 24px;
}

.quick-add-input {
    display: flex;
    gap: 12px;
    padding: 20px;
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.quick-add-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.15s ease;
    background-color: var(--surface);
}

.quick-add-input input:focus {
    outline: none;
    border-color: var(--hubspot-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.quick-add-input input::placeholder {
    color: var(--text-muted);
}

.quick-add-input button {
    padding: 10px 16px;
    background-color: var(--hubspot-orange);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.quick-add-input button:hover {
    background-color: var(--hubspot-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* HubSpot Todos Container */
.todos-container {
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.todos-list {
    padding: 0;
}

/* HubSpot Todo Cards */
.todo-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
    transition: all 0.15s ease;
    position: relative;
}

.todo-card:last-child {
    border-bottom: none;
}

.todo-card:hover {
    background-color: var(--surface-alt);
}

.todo-card.completed {
    opacity: 0.6;
    background-color: var(--surface-alt);
}

.todo-card.completed .todo-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* HubSpot Priority Indicators */
.todo-card.priority-high::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--danger-color);
}

.todo-card.priority-medium::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #f5a623;
}

.todo-card.priority-low::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--success-color);
}

/* HubSpot Todo Checkbox */
.todo-checkbox {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.todo-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hubspot-orange);
    border-radius: var(--border-radius);
}

/* HubSpot Todo Content */
.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.todo-description {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 13px;
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* HubSpot Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.priority-badge.priority-high {
    background-color: rgba(232, 93, 117, 0.1);
    color: var(--danger-color);
}

.priority-badge.priority-medium {
    background-color: rgba(245, 166, 35, 0.1);
    color: #f5a623;
}

.priority-badge.priority-low {
    background-color: rgba(0, 164, 189, 0.1);
    color: var(--success-color);
}

/* HubSpot Due Date */
.due-date {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.due-date.overdue {
    color: var(--danger-color);
    font-weight: 600;
}

.created-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* HubSpot Todo Actions */
.todo-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.todo-actions .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 14px;
}

.todo-actions .btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background-color: var(--surface-alt);
}

.todo-actions .btn-icon.btn-danger:hover {
    color: white;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Form Enhancements for Todo Modal */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s;
}

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

.form-group input[type="datetime-local"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input[type="datetime-local"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal Enhancements */
.modal-content.small {
    max-width: 400px;
}

.modal-body {
    padding: 1.5rem;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Stats Grid Enhancement for Dashboard */
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.todo-card {
    animation: fadeInUp 0.3s ease;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .todos-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .filter-tab {
        min-width: 80px;
    }
    
    .quick-add-input {
        flex-direction: column;
    }
    
    .todo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .todo-checkbox {
        align-self: flex-start;
    }
    
    .todo-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .todo-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: all 0.15s ease;
    background-color: var(--surface);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--hubspot-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:disabled {
    background-color: var(--surface-alt);
    cursor: not-allowed;
    color: var(--text-muted);
}

/* HubSpot Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--hubspot-orange-hover);
    border-color: var(--hubspot-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--surface-alt);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-danger:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* HubSpot Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 40, 52, 0.6);
    z-index: 1000;
    backdrop-filter: blur(1px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-light);
}

.modal-content.small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--border-radius);
    transition: all 0.15s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: var(--surface-alt);
}

.modal form {
    padding: 24px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background-color: var(--surface-alt);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #14532d;
    border: 1px solid #86efac;
}

.alert-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* Footer */
footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* HubSpot Responsive */
@media (max-width: 1024px) {
    .content {
        max-width: none;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - var(--nav-height));
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 16px 0;
        order: 1;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 16px;
        gap: 8px;
    }
    
    .nav-link {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .nav-link.active::before {
        display: none;
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
        padding-top: 32px;
        min-width: 0;
        width: 100%;
        order: 2;
        overflow-y: auto;
        flex: 1;
    }
    
    .todos-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }
    
    .todos-header h2 {
        font-size: 24px;
        margin-bottom: 0;
        white-space: nowrap;
        overflow: visible;
        min-width: fit-content;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .quick-add-input {
        flex-direction: column;
        padding: 16px;
    }
    
    .todo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .todo-checkbox {
        align-self: flex-start;
    }
    
    .todo-actions {
        justify-content: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 0 16px;
    }
    
    .content {
        padding: 16px;
        padding-top: 24px;
        overflow-x: hidden;
        width: 100%;
        min-width: 0;
    }
    
    .todos-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
        width: 100%;
        min-width: 0;
    }
    
    .todos-header h2 {
        font-size: 20px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: visible;
        min-width: fit-content;
    }
    
    .filter-tabs {
        gap: 2px;
    }
    
    .filter-tab {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .todo-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-content {
        margin: 16px;
        width: calc(100% - 32px);
    }
}