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

/* Loading Spinner Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner p {
    margin-top: 20px;
    color: #636e72;
    font-size: 16px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00875a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #2d3436;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #00875a;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: #2d3436;
    text-decoration: none;
    font-size: 15px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 8px 0;
    margin-top: 8px;
    display: none;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #2d3436;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: #f5f5f5;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.link-btn {
    color: #2d3436;
    text-decoration: none;
    font-size: 15px;
}

.btn-outline {
    padding: 10px 24px;
    border: 2px solid #2d3436;
    border-radius: 25px;
    text-decoration: none;
    color: #2d3436;
    font-size: 15px;
}

.btn-primary {
    padding: 10px 24px;
    background: #00875a;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 120px 20px;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-underline {
    width: 100%;
    max-width: 1400px;
    height: 80px;
    margin: 0 auto 60px;
}

.hero-cta {
    margin-top: 60px;
}

.btn-cta {
    display: inline-block;
    padding: 16px 40px;
    background: #00875a;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.hero-note {
    margin-top: 15px;
    color: #636e72;
    font-size: 14px;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
}

h2 {
    font-size: 24px;
    font-weight: 700;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00875a;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success {
    background: #00875a;
    color: white;
}

.btn-success:hover {
    background: #006644;
}

.btn-secondary {
    background: #dfe6e9;
    color: #2d3436;
}

.btn-danger {
    background: #d63031;
    color: white;
}

/* Timeline */
.timeline-container {
    margin-bottom: 30px;
}

.timeline-bar {
    background: #dfe6e9;
    border-radius: 8px;
    height: 60px;
    position: relative;
    overflow: visible;
    cursor: default;
}

.timeline-segments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-segment {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    cursor: move;
    transition: all 0.2s;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 30px;
    user-select: none;
}

.timeline-segment-label {
    pointer-events: none;
    z-index: 1;
}

.timeline-segment:hover {
    opacity: 0.85;
    transform: scaleY(1.05);
    z-index: 5;
}

.timeline-segment.dragging {
    opacity: 0.7;
    z-index: 10;
}

.timeline-segment.overflow-segment {
    opacity: 0.8;
    border-right: 2px solid rgba(214, 48, 49, 0.5);
}

.timeline-segment-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    cursor: ew-resize;
    z-index: 20;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
    border-left: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.timeline-segment-divider:hover {
    background: rgba(255, 255, 255, 1);
    width: 6px;
    border-left-width: 3px;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.2);
}

.timeline-segment-divider.dragging {
    background: rgba(255, 255, 255, 1);
    width: 6px;
    border-left-color: #00875a;
    border-left-width: 3px;
    box-shadow: -3px 0 8px rgba(0, 135, 90, 0.4);
}

.timeline-label {
    position: absolute;
    top: -25px;
    right: 0;
    font-weight: 700;
    font-size: 14px;
    color: #2d3436;
}

.timeline-fill {
    height: 100%;
    background: #00b894;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 0.3s;
}

.timeline-fill.over {
    background: #d63031;
}

.timeline-overflow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #d63031;
    font-weight: 700;
}

/* Agenda Items */
.agenda-items {
    margin-bottom: 20px;
}

.agenda-item {
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: move;
    transition: all 0.2s;
}

.agenda-item:hover {
    border-color: #00875a;
    box-shadow: 0 2px 8px rgba(0,135,90,0.1);
}

.agenda-item.dragging {
    opacity: 0.5;
}

.agenda-item.pending {
    border-color: #fdcb6e;
    background: #fef5e7;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.item-number {
    font-weight: 700;
    color: #00875a;
    margin-right: 10px;
}

.item-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.item-duration {
    background: #00875a;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.item-meta {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 8px;
}

.item-notes {
    color: #636e72;
    font-size: 14px;
    line-height: 1.5;
}

.pending-badge {
    background: #fdcb6e;
    color: #2d3436;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Share Links */
.share-box {
    background: #f8f9fa;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.share-item {
    margin-bottom: 15px;
}

.share-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.link-input {
    display: flex;
    gap: 10px;
}

.link-input input {
    flex: 1;
}

/* Preview Mode */
.preview-toggle {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.preview-toggle button {
    margin: 0 10px;
}

/* Pending Sidebar */
.pending-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    padding: 30px;
    overflow-y: auto;
    transition: right 0.3s;
    z-index: 1000;
}

.pending-sidebar.open {
    right: 0;
}

.pending-item {
    background: #fef5e7;
    border: 2px solid #fdcb6e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.pending-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Meeting Runner - New Layout */
/* Sticky compact header */
.runner-sticky-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 2px solid #dfe6e9;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.runner-sticky-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.runner-sticky-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.runner-stat-item {
    font-size: 14px;
}

.runner-stat-label {
    color: #636e72;
    margin-right: 5px;
}

.runner-stat-value {
    font-weight: 700;
    color: #00875a;
}

/* Main container */
.runner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Two column layout */
.runner-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    margin-bottom: 20px;
}

/* Left column */
.runner-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Timeline - full width at top */
.runner-timeline-compact {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    grid-column: 1 / -1;
}

/* Current item display - more compact */
.current-item-display {
    background: white;
    border-radius: 8px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 5px solid #00875a;
}

.current-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.current-item-info {
    flex: 1;
}

.runner-current-label {
    font-size: 10px;
    color: #636e72;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.runner-current-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2d3436;
    line-height: 1.3;
}

.runner-current-meta {
    font-size: 12px;
    color: #636e72;
    margin: 0;
}

.timer-inline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #e3f2fd;
    border-radius: 8px;
    min-width: 240px;
}

.timer-display {
    font-size: 36px;
    font-weight: 700;
    color: #00875a;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    line-height: 1;
}

.runner-timer-label {
    font-size: 11px;
    color: #636e72;
    margin: 4px 0 0 0;
    text-align: center;
}

.runner-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Right column - sidebar */
.runner-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.runner-sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.runner-sidebar-card h3 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Next up preview */
.runner-next-up {
    background: #fff8e7;
    border: 2px solid #fdcb6e;
}

.runner-next-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3436;
}

.runner-next-meta {
    font-size: 12px;
    color: #636e72;
}

/* Quick notes - left column version */
.runner-quick-notes-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.runner-quick-notes-section h3 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.runner-quick-notes-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.runner-quick-notes-compact textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.runner-quick-actions {
    display: flex;
    gap: 10px;
}

.runner-quick-actions button {
    flex: 1;
    font-size: 14px;
    padding: 10px 16px;
}

/* Meeting info */
.runner-meeting-info {
    font-size: 12px;
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 12px;
}

.runner-end-btn {
    width: 100%;
    margin-top: 10px;
}

/* Collapsible full agenda - in sidebar */
/* .runner-full-agenda-section inherits sidebar-card styles */

.runner-agenda-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}

.runner-agenda-toggle h3 {
    font-size: 12px;
    font-weight: 700;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.runner-toggle-icon {
    font-size: 16px;
    color: #636e72;
    transition: transform 0.3s;
}

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

.runner-agenda-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #dfe6e9;
    display: none;
}

.runner-agenda-expanded {
    display: block;
}

.runner-agenda-item-preview {
    padding: 8px 10px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f8f9fa;
}

.runner-agenda-item-preview.current {
    border-color: #00875a;
    background: #e8f5f1;
    border-width: 2px;
}

.runner-agenda-item-preview.completed {
    opacity: 0.5;
    background: #f8f9fa;
}

.runner-item-preview-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #2d3436;
}

.runner-item-preview-meta {
    font-size: 10px;
    color: #636e72;
}

.runner-item-duration-badge {
    background: #00875a;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.quick-notes {
    margin: 30px 0;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
}

.download-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: white;
    color: #2d3436;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.download-option:last-child {
    border-bottom: none;
}

.download-option:hover {
    background: #f8f9fa;
}

.download-option:active {
    background: #e9ecef;
}

/* Utility */
.hidden {
    display: none;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .runner-layout {
        grid-template-columns: 1fr;
    }

    .runner-sidebar {
        order: -1;
    }

    .runner-sticky-header h2 {
        font-size: 16px;
    }

    .runner-sticky-stats {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .pending-sidebar {
        width: 100%;
        right: -100%;
    }

    .timer-display {
        font-size: 24px;
    }

    .current-item-header {
        flex-direction: column;
        gap: 15px;
    }

    .timer-inline-container {
        width: 100%;
        min-width: auto;
    }

    .runner-current-title {
        font-size: 20px;
    }

    .runner-controls {
        flex-direction: column;
    }

    .runner-sticky-stats {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
}
