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

/* Aggressive image reset - especially for hero images */
img[src*="mockup"],
img.hero-image,
img.hero-image-mobile-img,
.hero-image-wrapper img,
.hero-image-mobile img {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    vertical-align: top !important;
    line-height: 0 !important;
    font-size: 0 !important;
    display: block !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: #10b981;
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

/* Main Content */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-container {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.text-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Roadmap Section */
.roadmap-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.roadmap-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.roadmap-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.title-input {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    border: none;
    background: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
    width: 100%;
}

.title-input:focus {
    outline: none;
    background-color: #f3f4f6;
}

/* Bulk Actions Toolbar */
.bulk-actions-toolbar {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bulk-actions-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bulk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.bulk-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.bulk-category-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
}

.bulk-category-select:hover {
    border-color: #ffffff;
}

.bulk-category-select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Milestone Selection Checkbox */
.milestone-select {
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
}

.milestone-select-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Roadmap Container */
.roadmap-container {
    position: relative;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

/* Direction Toggle */
.direction-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.direction-text {
    font-size: 0.75rem;
}

/* Milestone Card */
.milestone-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    position: relative;
    transition: all 0.2s ease;
    cursor: move;
    min-height: auto;
    height: auto;
    overflow: visible;
}

.milestone-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.milestone-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

/* Add Milestone Button */
.add-milestone-button-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.btn-add-milestone {
    background: transparent;
    border: 2px dashed #cbd5e1;
    border-radius: 0.375rem;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.btn-add-milestone:hover {
    border-color: #ffffff;
    background-color: #171717;
    color: #ffffff;
    transform: translateY(-1px);
}

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

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
}

.milestone-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    border: none;
    background: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    resize: none;
    overflow: hidden;
    min-height: 1.5rem;
    height: auto;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    hyphens: auto;
    font-family: inherit;
    box-sizing: border-box;
}

.milestone-title:focus {
    outline: none;
    background-color: #f3f4f6;
}

.milestone-title.completed {
    text-decoration: line-through;
    text-decoration-color: #10b981;
    text-decoration-thickness: 2px;
    color: #6b7280 !important;
    opacity: 0.75;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.milestone-header {
    position: relative;
}

/* Add checkmark icon before completed title */
.milestone-header.has-completed-title {
    padding-left: 2rem;
}

.milestone-header::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.375rem;
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease 0.2s;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-header.has-completed-title::before {
    content: '✓';
    color: #10b981;
    font-size: 1.125rem;
    font-weight: bold;
    opacity: 1;
    animation: checkmarkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.milestone-controls {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
    flex-wrap: nowrap;
    padding-top: 0.125rem;
    justify-content: space-between;
    width: auto;
}

.milestone-delete-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.milestone-select-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.milestone-select-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Desktop: Keep column layout for labels above controls */
@media (min-width: 769px) {
    .milestone-delete-group {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    
    .milestone-select-group {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
}

.milestone-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.milestone-delete {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    min-width: 2.5rem;
    max-width: 3rem;
    min-height: 2.5rem;
    max-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.milestone-delete:hover {
    background-color: #ef4444;
    color: white;
    transform: scale(1.05);
}

.milestone-delete:active {
    transform: scale(0.95);
}

.milestone-description {
    font-size: 0.875rem;
    color: #6b7280;
    border: none;
    background: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
    width: 100%;
    resize: vertical;
    min-height: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.milestone-description:focus {
    outline: none;
    background-color: #f3f4f6;
}

.milestone-phase-tracker {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-radius: 0.25rem;
}

.phase-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.phase-checkbox-label input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.phase-checkbox-label span {
    font-weight: 500;
}

.phase-checkbox-label:hover {
    color: #2563eb;
}

.milestone-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.milestone-date {
    font-size: 0.75rem;
    color: #6b7280;
    border: none;
    background: transparent;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.milestone-date:focus {
    outline: none;
    background-color: #f3f4f6;
}

.milestone-category {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
}

.milestone-category:hover {
    background-color: #f3f4f6;
}

/* Add Milestone Button */
.add-milestone {
    background: #f3f4f6;
    border: 2px dashed #9ca3af;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-weight: 500;
}

.add-milestone:hover {
    background-color: #e5e7eb;
    border-color: #6b7280;
    color: #374151;
}

/* Connecting Lines */
.milestone-card::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background-color: #000000;
    z-index: -1;
}

.milestone-card:first-child::before {
    display: none;
}

.milestone-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 1rem;
    background-color: #000000;
    z-index: -1;
}

.milestone-card:last-child::after {
    display: none;
}

/* Reversed Direction */
.roadmap-container.reversed .milestones-list {
    flex-direction: column-reverse;
}

.roadmap-container.reversed .milestone-card::before {
    top: -1rem;
}

.roadmap-container.reversed .milestone-card::after {
    bottom: -1rem;
}

/* Responsive Design */

/* Medium-small screens (iPhone 8, standard Android: 375px - 412px) */
@media (min-width: 375px) and (max-width: 412px) {
    .app-header {
        padding: 0.875rem;
    }
    
    .app-title {
        font-size: 1.1875rem;
    }
    
    .header-controls .btn {
        font-size: 0.875rem;
        padding: 0.6875rem 0.875rem;
        min-height: 44px;
    }
    
    .main-content {
        padding: 0.875rem;
    }
    
    .milestone-title {
        font-size: 0.9375rem;
    }
    
    .milestone-description {
        font-size: 0.8125rem;
    }
    
    .milestone-delete {
        min-width: 2.875rem;
        min-height: 2.875rem;
    }
}

/* Tablet and small desktop (413px - 767px) */
@media (min-width: 413px) and (max-width: 767px) {
    .main-content {
        padding: 1rem;
    }
}

/* General mobile (up to 768px) */
@media (max-width: 768px) {
    .app-header {
        padding: 0.75rem 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .app-title {
        text-align: center;
        font-size: 1.125rem;
        margin-bottom: 0;
    }
    
    .header-controls {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .header-controls .btn {
        flex: 1 1 auto;
        min-width: calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        justify-content: center;
        font-size: 0.8125rem;
        padding: 0.5rem 0.625rem;
        min-height: 38px;
    }
    
    /* Export PDF spans full width but not huge */
    #export-pdf {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        order: -1;
        background-color: #10b981;
        font-weight: 600;
        min-height: 40px;
    }
    
    /* Direction toggle - smaller icon only on mobile */
    #direction-toggle .direction-text {
        display: none;
    }
    
    #direction-toggle {
        min-width: auto;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .input-section {
        margin-bottom: 0.75rem;
    }
    
    .input-container {
        padding: 0.875rem;
    }
    
    .input-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .text-input {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .input-actions {
        margin-top: 0.75rem;
        gap: 0.5rem;
    }
    
    .input-actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 38px;
    }
    
    .milestone-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .milestone-title {
        margin-right: 0;
        width: 100%;
        font-size: 0.9375rem;
        padding: 0.375rem;
        min-height: 2.25rem;
        line-height: 1.5;
    }
    
    .milestone-controls {
        align-self: flex-start;
        width: 100%;
        justify-content: space-between;
        padding-top: 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .milestone-select-group,
    .milestone-delete-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .milestone-select-label {
        display: block;
    }
    
    .milestone-checkbox {
        width: 1.5rem;
        height: 1.5rem;
        margin-top: 0;
    }
    
    .milestone-delete {
        min-width: 3rem;
        max-width: 3.5rem;
        min-height: 3rem;
        max-height: 3.5rem;
        padding: 0.625rem 1rem;
        font-size: 1rem;
        font-weight: 700;
        box-sizing: border-box;
    }
    
    .milestone-footer {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    /* Progress Dashboard Mobile Layout */
    .progress-stat {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .progress-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .progress-label-row {
        width: 100%;
        min-width: auto;
    }
    
    .progress-label {
        font-size: 0.9375rem;
    }
    
    .progress-percentage {
        font-size: 0.9375rem;
        min-width: auto;
    }
    
    .progress-bar-container {
        width: 100% !important;
        flex: none !important;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
        height: 24px;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .progress-bar {
        display: block !important;
        min-width: 0 !important;
        height: 100% !important;
        transition: width 0.3s ease;
    }
    
    .milestones-header-row {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .header-label-select {
        margin-right: 4rem;
    }
    
    /* Mobile Button Improvements - Compact sizing */
    .btn {
        min-height: 38px;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }
    
    #export-pdf {
        min-height: 40px;
        font-weight: 600;
        padding: 0.625rem 1rem;
    }
    
    /* Additional small screen optimizations */
    .input-section {
        margin-bottom: 0.75rem;
    }
    
    .btn-add-milestone {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .milestones-list {
        gap: 0.75rem;
    }
}

/* Extra small screens - iPhone SE, very small Android (max 374px) */
@media (max-width: 374px) {
    .app-header {
        padding: 0.625rem 0.75rem;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .header-controls {
        gap: 0.5rem;
    }
    
    .header-controls .btn {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    #export-pdf {
        min-height: 44px;
        font-size: 0.8125rem;
    }
    
    .input-container {
        padding: 0.875rem;
    }
    
    .text-input {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .milestone-card {
        padding: 0.625rem;
        border-width: 1px;
    }
    
    .milestone-title {
        font-size: 0.875rem;
        min-height: 2rem;
    }
    
    .milestone-description {
        font-size: 0.75rem;
        min-height: 3rem;
    }
    
    .milestone-select-label {
        font-size: 0.625rem;
    }
    
    .milestone-checkbox {
        width: 1.375rem;
        height: 1.375rem;
    }
    
    .milestone-delete {
        min-width: 2.5rem;
        min-height: 2.5rem;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .progress-dashboard {
        padding: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .progress-dashboard h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .progress-stat {
        padding-bottom: 0.625rem;
        gap: 0.375rem;
    }
    
    .progress-label,
    .progress-percentage {
        font-size: 0.8125rem;
    }
    
    .progress-bar-container {
        height: 20px;
    }
    
    .bulk-actions-toolbar {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
    }
    
    .bulk-checkbox-label span {
        font-size: 0.75rem;
    }
    
    .bulk-category-select {
        font-size: 0.75rem;
        padding: 0.5rem;
        min-width: auto;
    }
    
    #mark-selected-complete {
        font-size: 0.75rem;
        padding: 0.625rem 0.75rem;
    }
    
    .btn-add-milestone {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .phase-checkbox-label {
        font-size: 0.8125rem;
    }
    
    .milestone-footer {
        gap: 0.375rem;
    }
    
    .milestone-date,
    .milestone-category {
        font-size: 0.8125rem;
        padding: 0.375rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Category Colors */
.category-planning { background-color: #dbeafe; color: #1e40af; }
.category-development { background-color: #dcfce7; color: #166534; }
.category-testing { background-color: #fef3c7; color: #92400e; }
.category-launch { background-color: #fce7f3; color: #be185d; }

/* PDF Preview Modal */
.pdf-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.pdf-preview-container {
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.pdf-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.pdf-preview-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.pdf-preview-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.pdf-preview-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.pdf-preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background-color: #f9fafb;
}

.pdf-preview-pages {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-preview-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #e5e7eb;
    background-color: white;
}

/* PDF Preview Content Styles */
.pdf-preview-wrapper {
    font-family: Arial, sans-serif;
}

.pdf-preview-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #111827;
}

.pdf-preview-date {
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.pdf-preview-milestone {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    background: white;
}

.pdf-preview-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pdf-preview-content-col {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    padding-right: 1rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pdf-preview-milestone-title {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #111827;
}

.pdf-preview-milestone-desc {
    font-size: 0.75rem;
    color: #374151;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.pdf-preview-milestone-date,
.pdf-preview-milestone-category {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.pdf-preview-checkbox-col {
    flex: 0 0 10%;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.25rem;
}

.pdf-preview-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #10b981;
}

.pdf-preview-notes-col {
    flex: 0 0 40%;
    width: 40%;
    border-left: 1px solid #e5e7eb;
    padding-left: 0.75rem;
    min-height: 3rem;
}

.pdf-preview-line {
    height: 1rem;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 0.5rem;
}

/* Mobile PDF Preview */
@media (max-width: 768px) {
    .pdf-preview-container {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .pdf-preview-header {
        padding: 1rem;
    }
    
    .pdf-preview-header h2 {
        font-size: 1.25rem;
    }
    
    .pdf-preview-content {
        padding: 1rem;
    }
    
    .pdf-preview-pages {
        padding: 1rem;
    }
    
    .pdf-preview-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pdf-preview-footer .btn {
        width: 100%;
    }
    
    .pdf-preview-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pdf-preview-content-col {
        flex: 1;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .pdf-preview-checkbox-col {
        flex: 0 0 auto;
        width: auto;
        align-self: flex-start;
    }
    
    .pdf-preview-notes-col {
        flex: 1;
        width: 100%;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
    }
}

/* Progress Dashboard */
.progress-dashboard {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-dashboard h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 160px;
    gap: 1rem;
}

.progress-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

.progress-bar-container {
    flex: 1;
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%); /* default blue */
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-bar.category-planning { background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%); }
.progress-bar.category-development { background: linear-gradient(90deg, #10b981 0%, #34d399 100%); }
.progress-bar.category-testing { background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.progress-bar.category-launch { background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%); }

.progress-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
}

/* Milestones Header Row - Hidden everywhere, labels now show on each milestone */
.milestones-header-row {
    display: none;
}

/* Hero Section - Text Only Layout */
.hero-section {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
}

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

.separator .border-t {
    width: 100%;
    max-width: 200px;
}

/* Perfect For Section - With Mockup */
.perfect-for-section {
    align-items: flex-start;
}

.perfect-for-content {
    flex: 1;
}

/* CTA Section */
.cta-section {
    align-items: center;
    justify-content: center;
}

/* Hero Mockup - Small Size */
.hero-mockup-small {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
}

@media (min-width: 768px) {
    .hero-mockup-small {
        margin-top: -1.5rem; /* Move up slightly for better balance */
    }
}

.hero-mockup-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Mobile - Show mockup below CTA button, 85% width */
@media (max-width: 767px) {
    .hero-mockup-small {
        width: 85%;
        max-width: 85%;
    }
}

/* Desktop - Show mockup next to "Perfect for" section */
@media (min-width: 768px) {
    .hero-mockup-small {
        width: auto;
        max-width: none;
    }
    
    .hero-mockup-img {
        width: 280px;
        max-width: 280px;
    }
}

/* Dark Theme for Landing Page App Section */
#editor .app-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #171717; /* neutral-900 */
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: #f5f5f5; /* neutral-100 */
}

/* Bulk Actions Toolbar - White Outline on Dark Background */
#editor .bulk-actions-toolbar {
    background-color: #262626 !important; /* neutral-800 - dark background */
    border: 2px solid #ffffff !important; /* white outline */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Empty Roadmap Area - Dark Theme with White Outline */
#editor .roadmap-container {
    background-color: transparent;
}

#editor .milestones-list {
    background-color: #171717 !important; /* neutral-900 - dark background when empty */
    border: 2px solid #ffffff !important; /* white outline */
    border-radius: 0.5rem;
    min-height: 200px;
    padding: 1rem;
    transition: all 0.3s ease;
}

/* When milestones exist, switch to white/light background */
#editor .milestones-list.has-content {
    background-color: #f8fafc !important; /* light background when milestones exist */
    border: none !important;
}

/* Milestone cards stay their normal color when content exists */
#editor .milestones-list.has-content .milestone-card {
    background-color: white; /* default light background for cards */
}

#editor .app-header {
    border-radius: 0;
    background: linear-gradient(135deg, #171717 0%, #0a0a0a 100%);
    border-bottom: 1px solid #404040;
}

#editor .app-title {
    color: #f5f5f5;
}

#editor .main-content {
    background-color: #171717; /* neutral-900 */
    color: #f5f5f5;
}

/* Input Section - Dark Theme */
#editor .input-section,
#editor .input-container {
    background-color: #262626; /* neutral-800 */
    border-color: #404040; /* neutral-700 */
}

#editor .input-label {
    color: #a3a3a3; /* neutral-400 */
}

#editor .text-input {
    background-color: #262626 !important; /* neutral-800 */
    border-color: #404040 !important; /* neutral-700 */
    color: #ffffff !important; /* pure white for maximum visibility */
    font-size: 0.875rem !important;
    padding: 0.75rem !important;
    line-height: 1.6 !important;
}

#editor .text-input:focus {
    border-color: #ffffff !important; /* white border for sleek look */
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    background-color: #262626 !important;
    color: #ffffff !important; /* pure white */
}

#editor .text-input::placeholder {
    color: #737373 !important; /* neutral-500 */
    opacity: 0.8 !important;
}

/* Ensure text is visible when typing - maximum visibility */
#editor textarea.text-input,
#editor input.text-input {
    color: #ffffff !important; /* pure white */
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important; /* cursor color */
}

/* Override autofill styles */
#editor .text-input:-webkit-autofill,
#editor .text-input:-webkit-autofill:hover,
#editor .text-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #262626 inset !important;
    box-shadow: 0 0 0px 1000px #262626 inset !important;
    color: #ffffff !important;
}

/* Buttons - Sleek Black Theme */
#editor .btn-primary {
    background-color: #000000; /* pure black */
    color: #ffffff; /* white text */
    font-weight: 700;
    border: 1px solid #404040;
}

#editor .btn-primary:hover {
    background-color: #171717; /* slightly lighter black */
    border-color: #525252;
}

#editor .btn-secondary {
    background-color: #404040; /* neutral-700 */
    color: #f5f5f5; /* neutral-100 */
    border: 1px solid #525252; /* neutral-600 */
}

#editor .btn-secondary:hover {
    background-color: #525252; /* neutral-600 */
}

#editor .btn-success {
    background-color: #000000; /* pure black */
    color: #ffffff; /* white text */
    font-weight: 700;
    border: 1px solid #404040;
}

#editor .btn-success:hover {
    background-color: #171717; /* slightly lighter black */
    border-color: #525252;
}

#editor .btn-danger {
    background-color: #dc2626; /* red-600 */
    color: #ffffff;
}

#editor .btn-danger:hover {
    background-color: #b91c1c; /* red-700 */
}

/* Milestone Cards - Dark Theme */
#editor .milestone-card {
    background-color: #262626; /* neutral-800 */
    border-color: #404040; /* neutral-700 */
    color: #f5f5f5;
}

#editor .milestone-card:hover {
    border-color: #ffffff; /* white border for sleek look */
}

#editor .milestone-title,
#editor .milestone-description {
    background-color: transparent;
    color: #f5f5f5;
}

#editor .milestone-title:focus,
#editor .milestone-description:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

#editor .milestone-title::placeholder,
#editor .milestone-description::placeholder {
    color: #737373; /* neutral-500 */
}

#editor .milestone-date,
#editor .milestone-category {
    background-color: #171717; /* neutral-900 */
    border-color: #404040; /* neutral-700 */
    color: #f5f5f5;
}

#editor .milestone-date:focus,
#editor .milestone-category:focus {
    border-color: #ffffff;
    outline: none;
}

/* Bulk Actions - Dark Theme */
#editor .bulk-actions-toolbar {
    background-color: #262626; /* neutral-800 */
    border-color: #404040; /* neutral-700 */
}

#editor .bulk-checkbox-label {
    color: #f5f5f5;
}

#editor .bulk-category-select {
    background-color: #171717; /* neutral-900 */
    border-color: #404040; /* neutral-700 */
    color: #f5f5f5;
}

#editor .bulk-category-select:hover {
    border-color: #ffffff;
}

#editor .bulk-category-select:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Progress Dashboard - Dark Theme */
#editor .progress-dashboard {
    background-color: #262626; /* neutral-800 */
    border-color: #404040; /* neutral-700 */
    color: #f5f5f5;
}

#editor .progress-dashboard h3 {
    color: #f5f5f5;
}

#editor .progress-label {
    color: #a3a3a3; /* neutral-400 */
}

#editor .progress-percentage {
    color: #ffffff; /* white for sleek look */
}

#editor .progress-bar-container {
    background-color: #404040; /* neutral-700 */
}

#editor .progress-bar {
    background-color: #000000; /* pure black */
}

/* Roadmap Title - Dark Theme */
#editor .roadmap-title {
    color: #f5f5f5;
}

#editor .roadmap-header {
    border-color: #404040; /* neutral-700 */
}

/* Category Colors - Dark Theme Compatible */
#editor .category-planning {
    background-color: #3b82f6; /* blue-500 */
    color: #ffffff;
}

#editor .category-development {
    background-color: #10b981; /* emerald-500 */
    color: #ffffff;
}

#editor .category-testing {
    background-color: #000000; /* pure black */
    color: #ffffff;
}

#editor .category-launch {
    background-color: #8b5cf6; /* violet-500 */
    color: #ffffff;
}

/* Add Milestone Button - Dark Theme */
#editor .btn-add-milestone {
    background-color: #262626; /* neutral-800 */
    border-color: #404040; /* neutral-700 */
    color: #a3a3a3; /* neutral-400 */
}

#editor .btn-add-milestone:hover {
    background-color: #404040; /* neutral-700 */
    border-color: #ffffff; /* white border */
    color: #ffffff;
}

/* Completed Title - Dark Theme */
#editor .milestone-title.completed {
    color: #737373 !important; /* neutral-500 */
    text-decoration-color: #10b981; /* emerald-500 */
}

/* Phase Checkbox - Dark Theme */
#editor .phase-checkbox-label {
    color: #f5f5f5;
}

/* Select/Deselect Labels - Dark Theme */
#editor .milestone-select-label {
    color: #a3a3a3; /* neutral-400 */
}

/* Empty State - Dark Theme */
#editor .empty-state {
    color: #737373; /* neutral-500 */
}

#editor .empty-state h3 {
    color: #a3a3a3; /* neutral-400 */
}

/* Checkboxes - Dark Theme */
#editor input[type="checkbox"] {
    accent-color: #000000; /* pure black */
}

/* Delete Button - Dark Theme */
#editor .milestone-delete {
    background-color: #dc2626; /* red-600 */
    border-color: #b91c1c; /* red-700 */
    color: #ffffff;
}

#editor .milestone-delete:hover {
    background-color: #b91c1c; /* red-700 */
    border-color: #991b1b; /* red-800 */
}

/* Milestone Footer - Dark Theme */
#editor .milestone-footer {
    border-color: #404040; /* neutral-700 */
}

/* Milestone Phase Tracker - Dark Theme */
#editor .milestone-phase-tracker {
    border-color: #404040; /* neutral-700 */
    background-color: #171717; /* neutral-900 */
}

/* Scrollbar - Dark Theme (webkit) */
#editor ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#editor ::-webkit-scrollbar-track {
    background: #171717; /* neutral-900 */
}

#editor ::-webkit-scrollbar-thumb {
    background: #404040; /* neutral-700 */
    border-radius: 5px;
}

#editor ::-webkit-scrollbar-thumb:hover {
    background: #525252; /* neutral-600 */
}
