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

:root {
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --background: #ffffff;
    --border: #f0f0f0;
    --accent: #000000;
    --accent-hover: #333333;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 200px 0 200px;
    text-align: center;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 120, 120, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 120, 120, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(120, 120, 120, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Waitlist Form */
.waitlist-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    transition: all 0.2s ease;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder {
    color: var(--text-tertiary);
}

.btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

/* Messages */
.message {
    max-width: 400px;
    margin: 0 auto 24px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: white;
    overflow: hidden;
}

.screenshots h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.screenshots-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    will-change: transform;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    gap: 16px;
}

.screenshot-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-nav.prev {
    left: 24px;
}

.carousel-nav.next {
    right: 24px;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

/* Progress Bar Indicator */
.carousel-progress {
    width: 160px;
    height: 4px;
    margin: 32px auto 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    position: relative;
}

.carousel-progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 33.33%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 100px;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Screenshot Captions */
.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 32px 24px 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover .screenshot-caption {
    opacity: 1;
}

.screenshot-caption h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.screenshot-caption p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Device Mockups */
.device-mockup {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
}

.device-mockup.macbook {
    padding: 3% 12% 8%;
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.device-mockup.macbook::before {
    content: '';
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.device-mockup.macbook::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 20px;
    background: #c0c0c0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.device-mockup.iphone {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 36px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    margin: 0 auto;
}

.device-mockup.iphone::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.device-screen {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.device-mockup.iphone .device-screen {
    border-radius: 26px;
}

/* Current Status Section */
.status-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.status-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.status-header {
    text-align: center;
    margin-bottom: 60px;
}

.status-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.status-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.status-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.status-badge.beta {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.coming-soon {
    background: #e3f2fd;
    color: #1565c0;
}

.status-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
}

.timeline {
    margin-top: 60px;
    position: relative;
    padding: 0 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #4caf50;
    border-radius: 50%;
    z-index: 1;
}

.timeline-dot.upcoming {
    border-color: #2196f3;
}

.timeline-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Time Block Visualizer */
.visualizer-section {
    padding: 100px 0;
    background: white;
}

.visualizer-header {
    text-align: center;
    margin-bottom: 60px;
}

.visualizer-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.visualizer-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.visualizer-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.day-column {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.day-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.time-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    position: relative;
}

.time-block {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.time-block.meeting::before {
    background: #2196f3;
}

.time-block.work::before {
    background: #4caf50;
}

.time-block.personal::before {
    background: #ff9800;
}

.time-block.break::before {
    background: #9c27b0;
}

.time-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.time-block.dragging {
    opacity: 0.8;
    transform: rotate(2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.time-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.time-block .time {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.time-block .time svg {
    width: 14px;
    height: 14px;
}

.drop-zone {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.drop-zone.active {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.02);
}

.visualizer-controls {
    margin-top: 32px;
    text-align: center;
}

.reset-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Features */
.features {
    padding: 100px 0;
    background: #fafafa;
}

.features-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.features-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s ease;
}

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

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Waitlist Section */
.waitlist-section {
    padding: 100px 0;
    text-align: center;
    background: white;
}

.waitlist-section h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.waitlist-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 48px 0;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 140px;
        min-height: 85vh;
    }

    h1 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .form-row {
        flex-direction: column;
    }

    .screenshots {
        padding: 80px 0;
    }

    .screenshots h2 {
        font-size: 28px;
    }

    .features-grid {
        gap: 32px;
    }

    /* Carousel Mobile */
    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav.prev {
        left: 12px;
    }

    .carousel-nav.next {
        right: 12px;
    }

    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .screenshot-caption {
        padding: 24px 16px 16px;
    }

    .screenshot-caption h3 {
        font-size: 18px;
    }

    .screenshot-caption p {
        font-size: 13px;
    }

    /* Status Section Mobile */
    .status-section {
        padding: 60px 0;
    }

    .status-header h2 {
        font-size: 28px;
    }

    .status-grid {
        gap: 24px;
    }

    .status-card {
        padding: 24px;
    }

    /* Features Mobile */
    .features {
        padding: 60px 0;
    }

    .features-title {
        font-size: 28px;
    }

    .features-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* Waitlist Section Mobile */
    .waitlist-section {
        padding: 60px 0;
    }

    .waitlist-section h2 {
        font-size: 28px;
    }

    .waitlist-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .timeline {
        padding: 0;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 60px;
    }

    .timeline-dot {
        left: 24px !important;
    }

    .timeline-content {
        max-width: 100%;
    }

    /* Visualizer Mobile */
    .visualizer-section {
        padding: 60px 0;
    }

    .visualizer-header h2 {
        font-size: 28px;
    }

    .visualizer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .day-column {
        padding: 20px;
    }

    .time-blocks {
        min-height: 300px;
    }
}

/* Spotlight Hint */
.spotlight-hint {
    margin-top: 32px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.spotlight-hint:hover {
    opacity: 0.7;
}

.spotlight-hint p {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 400;
}

.kbd-inline {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin: 0 2px;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.spotlight-modal {
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.spotlight-input-wrapper {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.spotlight-input {
    width: 100%;
    padding: 0;
    font-size: 18px;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
}

.spotlight-input::placeholder {
    color: var(--text-tertiary);
}

.spotlight-suggestions {
    padding: 12px;
}

.suggestion-item {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.15s ease;
    font-size: 14px;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.suggestion-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Parsed details */
.parsed-details {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.parsed-detail {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Success message */
.spotlight-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    z-index: 10;
    animation: successFadeIn 0.3s ease-out;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Subtle animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .screenshots, .features {
    animation: fadeIn 0.8s ease-out;
}

/* Floating calendar entries */
.calendar-entries {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.calendar-entry {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    opacity: 0.85;
    animation: float 20s infinite ease-in-out;
    min-width: 240px;
    border: none;
    padding-left: 20px;
    display: block;
}

.calendar-entry-bar {
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 1.5px;
}

.calendar-entry.meeting .calendar-entry-bar {
    background: #4285f4;
}

.calendar-entry.work .calendar-entry-bar {
    background: #34a853;
}

.calendar-entry.personal .calendar-entry-bar {
    background: #fbbc04;
}

.calendar-entry.break .calendar-entry-bar {
    background: #ea4335;
}

.calendar-entry.task .calendar-entry-bar {
    background: #70757a;
}

/* Background colors for different event types */
.calendar-entry.meeting {
    background: #e8f0fe;
}

.calendar-entry.work {
    background: #e6f4ea;
}

.calendar-entry.personal {
    background: #fef7e0;
}

.calendar-entry.break {
    background: #fee;
}

.calendar-entry.task {
    background: #f8f9fa !important;
}

.calendar-entry-content {
    padding: 14px 16px 14px 2px;
    text-align: left;
}

.calendar-entry-title {
    font-size: 13px;
    color: #3c4043;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.3;
    text-align: left;
}

.calendar-entry-time {
    font-size: 11px;
    color: #70757a;
    font-weight: 400;
    text-align: left;
}

/* Only position direct children of .calendar-entries, not nested ones */
.calendar-entries > .calendar-entry:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.calendar-entries > .calendar-entry:nth-child(2) {
    top: 60%;
    left: 3%;
    animation-delay: 3s;
}

.calendar-entries > .calendar-entry:nth-child(3) {
    top: 25%;
    right: 10%;
    animation-delay: 7s;
}

.calendar-entries > .calendar-entry:nth-child(5) {
    top: 40%;
    left: 5%;
    animation-delay: 10s;
}

/* Position for grouped calendar entry */
.calendar-entries > .calendar-entry-group:nth-child(4) {
    top: 55%;
    right: 8%;
    animation-delay: 5s;
}

.calendar-entry-group .calendar-entry {
    position: relative;
    animation: none;
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    padding-left: 20px;
}

.calendar-entry-group {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    min-width: 240px;
    position: absolute;
    animation: float 20s infinite ease-in-out;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.85;
}

/* First and last entries handle their own internal rounded corners */
.calendar-entry-group .calendar-entry:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.calendar-entry-group .calendar-entry:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Add subtle line separator between travel time and main event */
.calendar-entry-group .calendar-entry + .calendar-entry {
    margin-top: 0;
    position: relative;
}

.calendar-entry-group .calendar-entry + .calendar-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;  /* Start after the inset space and color bar */
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

/* Fix opacity for calendar entries inside groups */
.calendar-entry-group .calendar-entry {
    opacity: 1;
}

/* Travel time blocks */
.calendar-entry.travel-time {
    opacity: 1;
    box-shadow: none;
    display: flex;
}

/* For travel time attached to meeting events, use blue */
.calendar-entry-group.meeting .calendar-entry.travel-time .calendar-entry-bar {
    background: #4285f4;
}

/* For travel time attached to break/workout events, use the same color */
.calendar-entry-group.break .calendar-entry.travel-time .calendar-entry-bar {
    background: #ea4335;  /* Same red as break/workout */
}

.calendar-entry.travel-time {
    background: #f3f4f6;
}

.calendar-entry.travel-time .calendar-entry-content {
    padding: 8px 16px 8px 0px;
}

.calendar-entry.travel-time .calendar-entry-title {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.3;
}

.calendar-entry.travel-time .calendar-entry-time {
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.3;
}

/* Ensure all entries in group are block containers */
.calendar-entry-group .calendar-entry {
    display: block;
}

/* Override position absolute for grouped entries */
.calendar-entry-group .calendar-entry {
    position: relative !important;
}

/* Task entries styling */
.calendar-entry.task .calendar-entry-title {
    color: #5f6368;
    font-weight: 400;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
}

.calendar-entry.task .calendar-entry-time {
    color: #80868b;
    padding-left: 20px;
    font-size: 11px;
}

/* Checkbox circle icon for tasks */
.calendar-entry.task .calendar-entry-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1.5px solid #70757a;
    border-radius: 50%;
    background: transparent;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Show only first 2 events on mobile */
    .calendar-entries > .calendar-entry:nth-child(1),
    .calendar-entries > .calendar-entry-group:nth-child(1) {
        top: 5%;
        left: 2%;
        opacity: 0.6;
        min-width: 240px;
    }
    
    .calendar-entries > .calendar-entry:nth-child(2),
    .calendar-entries > .calendar-entry-group:nth-child(2) {
        top: 75%;
        right: 2%;
        left: auto;
        opacity: 0.6;
        min-width: 240px;
    }
    
    /* Hide other entries on mobile */
    .calendar-entries > .calendar-entry:nth-child(n+3),
    .calendar-entries > .calendar-entry-group:nth-child(n+3) {
        display: none;
    }
    
    /* Use normal animation on mobile */
    .calendar-entry, .calendar-entry-group {
        animation: float 30s infinite ease-in-out;
    }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Reposition events to avoid center overlap */
    .calendar-entries > .calendar-entry:nth-child(1) {
        top: 10%;
        left: 2%;
    }
    
    .calendar-entries > .calendar-entry:nth-child(2) {
        top: 65%;
        left: 2%;
    }
    
    .calendar-entries > .calendar-entry:nth-child(3) {
        top: 15%;
        right: 2%;
    }
    
    .calendar-entries > .calendar-entry-group:nth-child(4) {
        top: 60%;
        right: 2%;
    }
    
    .calendar-entries > .calendar-entry:nth-child(5) {
        top: 40%;
        right: 2%;
        left: auto;
    }
}