#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: #23272e;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 15px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #333;
    gap: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#autosave-status {
    font-weight: 500;
    color: #8be9fd;
    margin-left: 0;
    transition: all 0.3s ease;
    opacity: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

#autosave-status.updating {
    opacity: 0.6;
    transform: scale(0.98);
}

#autosave-status.saving {
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.99);
    }
}

#autosave-status.success {
    color: #50fa7b;
}

#autosave-status.error {
    color: #ff5555;
}

/* Reset */
html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #1e1e1e;
    color: #f0f0f0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent all image dragging globally */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Allow pointer events on specific interactive images */
.video-thumb img,
#thumbnail {
    pointer-events: auto;
}

/* But still prevent dragging on thumbnail images */
.video-thumb img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Layout */
#app {
    display: flex;
    height: calc(100vh - 40px);
    margin-top: 40px;
    min-width: 0;
    overflow: hidden;
}

.sidebar {
    width: 20vw;
    min-width: 260px;
    background-color: #2c2c2c;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    border-right: 1px solid #444;
}

/* On screens smaller than 1800px (non-retina, e.g. MacBook 14") use 30vw */
@media (max-width: 1800px) {
    .sidebar {
        width: 30vw;
    }
}

.main {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Inspector Panel Styles */
.inspector {
    width: 15vw;
    min-width: 260px;
    background-color: #2c2c2c;
    padding: 18px 12px;
    box-sizing: border-box;
    border-left: 1px solid #444;
    overflow-y: auto;
}

.inspector h2,
.inspector h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.zone-editor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.zone-editor-title {
    margin-block-end: 0;
}

.inspector label {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    box-sizing: border-box;
}

.inspector label>span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inspector input,
.inspector select,
.inspector textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: #f0f0f0;
    font-size: 15px;
    display: block;
    margin-bottom: 10px;
}

#zone-form {
    margin-top: 18px;
}

/* Video player */
.video-preview {
    position: relative;
    width: 60vw;
    min-width: 320px;
    max-height: 90%;
    max-width: 100%;
    box-sizing: border-box;
    user-select: none;
}

.video-preview.dragover-allowed {
    box-shadow: 0 0 0 4px #50fa7b, 0 0 10px #50fa7b;
    animation: soft-pulse 1s ease-in-out infinite;
}

@keyframes soft-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px #50fa7b, 0 0 10px #50fa7b;
    }
    50% {
        box-shadow: 0 0 0 4px #50fa7b, 0 0 30px #50fa7b;
    }
}

.video-preview video {
    width: 100%;
    display: block;
    border: 2px solid #444;
    background-color: black;
}

#overlay {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    /* pointer-events: none; */
    pointer-events: auto;
}

/* Thumbnails */
.video-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background-color: #292929;
    border: 1px solid #444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s, border 0.15s;
    min-height: 48px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.video-thumb.selected,
.video-thumb:hover {
    background-color: #444;
    border-color: #007acc;
}

.video-thumb img {
    width: 48px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #333;
    background: #111;
    margin-right: 6px;
}

.video-thumb span {
    display: block;
    flex: 1 1 0px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#zone-form input {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #1e1e1e;
    color: #f0f0f0;
}

#zone-form button {
    padding: 8px 12px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#zone-form button:hover {
    background-color: #005fa3;
}

.zone-box {
    position: absolute;
    border: 2px dashed #00bfff;
    background-color: rgba(0, 191, 255, 0.2);
    cursor: move;
    pointer-events: auto;
    box-sizing: border-box;
    z-index: 100;
    /* Force immediate position updates during drag operations */
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
}

.zone-box.selected {
    border-color: yellow;
    /* Example: Change border color for selected zone */
    background-color: rgba(255, 255, 0, 0.2);
    /* Optional: Slightly different background */
}

#thumbnail {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: 2px solid #444;
    object-fit: contain;
    box-sizing: border-box;
}

/* Highlight video-list in select target mode */
#video-list.select-target-mode {
    box-shadow: 0 0 0 3px #007acc, 0 0 12px #007acc;
    z-index: 3001;
    position: relative;
}

.video-thumb.selectable {
    outline: 2px solid #50fa7b;
    background: #222 !important;
    cursor: pointer;
}

.select-target-btn {
    animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 #50fa7b;
    }

    to {
        box-shadow: 0 0 0 4px #50fa7b;
    }
}

.home-button {
    background: none;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
    outline: none;
    display: flex;
    margin: 0px;
    padding-inline: 0px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.home-icon {
    width: 24px;
    background: none;
    border: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.menu-button {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    margin: 0px;
    padding-inline: 0px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.logo-menu {
    height: 24px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.download-button {
    background: none;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    margin: 0px;
    margin-left: auto; /* This pushes the button to the far right */
    padding-inline: 0px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.download-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.download-button:hover:not(:disabled) {
    opacity: 0.8;
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

.manual-save-button {
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.manual-save-button:hover:not(:disabled) {
    background: #4a5568;
    border-color: #6b7280;
}

.manual-save-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background: #1a202c;
}

.manual-save-button.saving {
    background: #f1fa8c;
    color: #1a202c;
    border-color: #f1fa8c;
}

.manual-save-button.saved {
    background: #50fa7b;
    color: #1a202c;
    border-color: #50fa7b;
}

.manual-save-button.error {
    background: #ff5555;
    color: #ffffff;
    border-color: #ff5555;
}

.download-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(139, 233, 253, 0.3);
    border-top: 2px solid #8be9fd;
    border-radius: 50%;
    animation: download-spin 1s linear infinite;
}

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

.overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal {
    background: #23272e;
    padding: 32px 28px 24px 28px;
    border-radius: 12px;
    box-shadow: 0 4px 32px #0008;
    min-width: 260px;
    max-width: 70vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.modal h2 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: #ffffff;
}

.menu-option {
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    background: #007acc;
    color: #fff;
    cursor: pointer;
    margin-bottom: 6px;
}

#close-menu-btn{
    background-color: rgb(232, 60, 60);
}

.modal button {
    font-size: 15px;
    padding: 0px 18px;
    border-radius: 5px;
    border: none;
    background: #444;
    color: #fff;
    cursor: pointer;
    height: 40px;
}


/* New Project Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

#new-project-modal-overlay .modal {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 50%, #2c2c2c 100%);
    border: 2px solid #50fa7b55;
    box-shadow: 0 12px 48px #000c, 0 2px 0 #50fa7b33, inset 0 1px 0 #50fa7b22;
    min-width: 400px;
    max-width: 500px;
    animation: modal-fadein 0.3s ease-out;
}

#new-project-modal-overlay .form-group {
    width: 100%;
    margin-bottom: 20px;
}

#new-project-modal-overlay .form-group label {
    display: block !important;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14px;
    cursor: default !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    transition: none !important;
    align-items: initial !important;
}

#new-project-modal-overlay .form-group label:hover {
    border-color: transparent !important;
    background: none !important;
    color: #e2e8f0 !important;
}

#new-project-modal-overlay .form-group input[type="text"],
#new-project-modal-overlay .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #2d3748;
    color: #e2e8f0;
    font-size: 14px;
    box-sizing: border-box;
}

#new-project-modal-overlay .form-group input[type="text"]:focus,
#new-project-modal-overlay .form-group select:focus {
    outline: none;
    border-color: #50fa7b;
    box-shadow: 0 0 0 2px #50fa7b22;
}

#new-project-modal-overlay .form-group input[type="file"] {
    width: 100%;
    padding: 8px 0;
    color: #e2e8f0;
    font-size: 14px;
}

#new-project-modal-overlay .form-group small {
    display: block;
    margin-top: 4px;
    color: #a0aec0;
    font-size: 12px;
}

#new-project-modal-overlay .client-input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#new-project-modal-overlay .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

#new-project-modal-overlay .modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#new-project-modal-overlay .modal-buttons button[type="button"] {
    background: #4a5568;
    color: #e2e8f0;
}

#new-project-modal-overlay .modal-buttons button[type="button"]:hover {
    background: #5a6578;
}

#new-project-modal-overlay .modal-buttons button[type="submit"] {
    background: #50fa7b;
    color: #1a202c;
    font-weight: 600;
}

#new-project-modal-overlay .modal-buttons button[type="submit"]:hover {
    background: #68d391;
}

@keyframes modal-fadein {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Project Browser Modal Styles */
.project-browser-modal {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 50%, #2c2c2c 100%);
    border: 2px solid #8be9fd55;
    box-shadow: 0 12px 48px #000c, 0 2px 0 #8be9fd33, inset 0 1px 0 #8be9fd22;
    min-width: 700px;
    max-width: 90vw;
    max-height: 80vh;
    animation: modal-fadein 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    color: #e2e8f0;
    font-size: 24px;
}

.modal-close {
    background: none;
    border: none;
    color: #8be9fd;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(139, 233, 253, 0.1);
    color: #fff;
}

.browser-filters {
    display: flex;
    gap: 20px;
    padding: 0 20px 20px;
    border-bottom: 1px solid #4a5568;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.filter-group label {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #4a5568;
    border-radius: 6px;
    background: #2d3748;
    color: #e2e8f0;
    font-size: 14px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #8be9fd;
    box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.2);
}

.projects-grid {
    flex: 1;
    padding: 0 20px;
    overflow-y: auto;
    max-height: 400px;
}

.project-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #4a5568;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-card:hover {
    background: rgba(139, 233, 253, 0.1);
    border-color: #8be9fd;
    transform: translateX(2px);
}

.project-card .project-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #8be9fd;
}

.project-card .project-info {
    flex: 1;
}

.project-card .project-name {
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.project-card .project-details {
    font-size: 12px;
    color: #a0aec0;
    display: flex;
    gap: 15px;
}

.project-card .project-client {
    color: #8be9fd;
    font-weight: 500;
}

.project-card .project-modified {
    color: #9ca3af;
}

.project-card .project-videos {
    color: #50fa7b;
}

.no-projects-message {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-size: 16px;
}

#autofind-modal .modal {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 50%, #2c2c2c 100%);
    border: 2px solid #8be9fd55;
    box-shadow: 0 12px 48px #000c, 0 2px 0 #8be9fd33, inset 0 1px 0 #8be9fd22;
    animation: autofind-fadein 0.4s cubic-bezier(.15,1.1,.4,1) 1;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    min-width: 520px;
}

@media (max-width: 700px) {
    #autofind-modal .modal {
        min-width: 320px;
        max-width: 98vw;
        margin: 10px;
    }
}

#autofind-modal .modal h2 {
    font-size: 1.35em;
    color: #8be9fd;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 1px 3px #0008;
    text-align: center;
    background: linear-gradient(90deg, #8be9fd 0%, #50fa7b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

#autofind-modal .modal h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #8be9fd 0%, #50fa7b 100%);
    border-radius: 1px;
}

/* Help section styling */
#autofind-modal .modal .autofind-help-section {
    background: linear-gradient(135deg, #1a1e26 0%, #212832 50%, #252b37 100%);
    border: 1.5px solid #8be9fd44;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #e8f0f8;
    font-size: 14.5px;
    line-height: 1.6;
    position: relative;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(139, 233, 253, 0.1),
        0 1px 0 rgba(139, 233, 253, 0.05);
}

#autofind-modal .modal .autofind-help-section::before {
    content: '💡';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #8be9fd 0%, #50fa7b 100%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(139, 233, 253, 0.3);
}

#autofind-modal .modal .autofind-help-section p {
    margin: 0 0 16px 0;
    color: #c8e0f0;
    font-weight: 500;
    font-size: 15px;
}

#autofind-modal .modal .autofind-help-section ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

#autofind-modal .modal .autofind-help-section li {
    margin-bottom: 12px;
    color: #d8e8f0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

#autofind-modal .modal .autofind-help-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: #8be9fd;
    font-weight: bold;
    font-size: 16px;
}

#autofind-modal .modal .autofind-help-section strong {
    color: #8be9fd;
    font-weight: 700;
    background: rgba(139, 233, 253, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

#autofind-modal .modal form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 85vw;
    align-items: stretch;
}

/* Enhanced suffix forms section */
#autofind-modal .modal .autofind-suffix-forms {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
    padding: 24px 20px 20px 20px;
    background: linear-gradient(135deg, #1a1f28 0%, #1f242d 50%, #242934 100%);
    border: 1.5px solid rgba(139, 233, 253, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(139, 233, 253, 0.1),
        0 1px 0 rgba(139, 233, 253, 0.05);
    position: relative;
}

#autofind-modal .modal .autofind-suffix-forms::before {
    content: '⚙️ Video Suffix Configuration';
    position: absolute;
    top: -12px;
    left: 24px;
    background: linear-gradient(90deg, #23272e 0%, #2a2f36 100%);
    padding: 6px 16px;
    font-size: 13px;
    color: #8be9fd;
    font-weight: 700;
    border-radius: 20px;
    border: 1.5px solid rgba(139, 233, 253, 0.4);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(139, 233, 253, 0.2);
}

#autofind-modal .modal .autofind-suffix-form {
    background: linear-gradient(135deg, #23272e 0%, #262b32 50%, #2a2f36 100%);
    border: 1.5px solid rgba(85, 85, 85, 0.4);
    border-radius: 10px;
    padding: 18px 20px 16px 20px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(139, 233, 253, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.02);
    margin-bottom: 0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

#autofind-modal .modal .autofind-suffix-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8be9fd 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

#autofind-modal .modal .autofind-suffix-form:hover {
    border-color: rgba(139, 233, 253, 0.6);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(139, 233, 253, 0.15),
        0 0 0 1px rgba(139, 233, 253, 0.1);
    transform: translateY(-2px);
}

#autofind-modal .modal .autofind-suffix-form:hover::before {
    opacity: 1;
}

#autofind-modal .modal .autofind-suffix-form:focus-within {
    border-color: #8be9fd;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(139, 233, 253, 0.2),
        0 0 0 2px rgba(139, 233, 253, 0.2);
    transform: translateY(-3px);
}

#autofind-modal .modal .autofind-suffix-form:focus-within::before {
    opacity: 1;
    background: linear-gradient(90deg, #8be9fd 0%, #50fa7b 100%);
}

#autofind-modal .modal .autofind-suffix-form label {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d0e0f0;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    #autofind-modal .modal .autofind-suffix-form {
        padding: 16px 14px 12px 14px;
    }
    #autofind-modal .modal .autofind-suffix-forms {
        padding: 20px 16px 16px 16px;
        gap: 14px;
    }
    #autofind-modal .modal .autofind-suffix-forms::before {
        font-size: 12px;
        padding: 4px 12px;
        left: 16px;
    }
    #autofind-modal .modal .autofind-help-section {
        padding: 16px 18px;
        margin-bottom: 20px;
    }
    #autofind-modal .modal .autofind-help-section::before {
        left: 16px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    #autofind-modal .modal button[type="button"],
    #autofind-modal .modal button[type="submit"] {
        padding: 12px 20px;
        font-size: 15px;
    }
}

#autofind-modal .modal .autofind-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #181a1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px #0003, 0 1px 0 #8be9fd22;
    font-size: 15px;
    border: 1px solid #8be9fd33;
    table-layout: fixed;
}

#autofind-modal .modal .autofind-preview-table th,
#autofind-modal .modal .autofind-preview-table td {
    padding: 8px 16px;
    text-align: left !important;
    border-bottom: 1px solid #3336;
    vertical-align: top !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Add spacing between columns */
#autofind-modal .modal .autofind-preview-table th:not(:last-child),
#autofind-modal .modal .autofind-preview-table td:not(:last-child) {
    border-right: 1px solid #3336;
}

/* Fixed column widths for proper alignment */
#autofind-modal .modal .autofind-preview-table th:nth-child(1),
#autofind-modal .modal .autofind-preview-table td:nth-child(1) {
    width: 45%;
}

#autofind-modal .modal .autofind-preview-table th:nth-child(2),
#autofind-modal .modal .autofind-preview-table td:nth-child(2) {
    width: 27%;
}

#autofind-modal .modal .autofind-preview-table th:nth-child(3),
#autofind-modal .modal .autofind-preview-table td:nth-child(3) {
    width: 28%;
}

#autofind-modal .modal .autofind-preview-table th {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 100%);
    font-weight: 600;
    border-bottom: 2px solid #8be9fd44;
    letter-spacing: 0.01em;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    text-align: left !important;
}

#autofind-modal .modal .autofind-preview-table th::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #8be9fd 50%, transparent 100%);
}

/* Fallback styles for the preview table (in case modal context doesn't apply) */
.autofind-preview-table {
    width: 100%;
    border-collapse: collapse;
    background: #181a1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px #0003, 0 1px 0 #8be9fd22;
    font-size: 15px;
    border: 1px solid #8be9fd33;
    table-layout: fixed;
}

.autofind-preview-table th,
.autofind-preview-table td {
    padding: 12px 16px;
    text-align: left !important ;
    border-bottom: 1px solid #3336;
    vertical-align: top !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.autofind-preview-table th:not(:last-child),
.autofind-preview-table td:not(:last-child) {
    border-right: 1px solid #3336;
}

.autofind-preview-table th {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 100%);
    font-weight: 600;
    border-bottom: 2px solid #8be9fd44;
    letter-spacing: 0.01em;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
}

.autofind-preview-table td {
    background: #181a1f;
    color: #e0e0e0;
    font-size: 11px;
    transition: all 0.15s ease;
}

.autofind-preview-table tr:last-child td {
    border-bottom: none;
}

.autofind-preview-table tr:hover td {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 100%);
    color: #fff;
}

#autofind-modal .modal .autofind-preview-table tr:last-child td {
    border-bottom: none;
}

#autofind-modal .modal .autofind-preview-table tr:hover td {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 100%);
    color: #fff;
}

/* Status indicators in table */
#autofind-modal .modal .autofind-preview-table .status-freeze {
    color: #ff7979;
    font-weight: 600;
}

#autofind-modal .modal .autofind-preview-table .status-loop {
    color: #74b9ff;
    font-weight: 600;
}

#autofind-modal .modal .autofind-preview-table .status-jump {
    color: #55a3ff;
    font-weight: 600;
}

#autofind-modal .modal .autofind-preview-table .target-arrow {
    color: #8be9fd;
    font-weight: bold;
    margin: 0 4px;
}

/* Responsive table adjustments */
@media (max-width: 700px) {
    #autofind-modal .modal .autofind-preview-table th,
    #autofind-modal .modal .autofind-preview-table td {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    #autofind-modal .modal .autofind-preview-table th {
        font-size: 12px;
    }
    
    /* Adjust column widths for mobile */
    #autofind-modal .modal .autofind-preview-table th:nth-child(1),
    #autofind-modal .modal .autofind-preview-table td:nth-child(1) {
        width: 40%;
    }
    
    #autofind-modal .modal .autofind-preview-table th:nth-child(2),
    #autofind-modal .modal .autofind-preview-table td:nth-child(2) {
        width: 30%;
    }
    
    #autofind-modal .modal .autofind-preview-table th:nth-child(3),
    #autofind-modal .modal .autofind-preview-table td:nth-child(3) {
        width: 30%;
    }
}

#autofind-modal .modal label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: #c8e0f0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#autofind-modal .modal input,
#autofind-modal .modal select,
#autofind-modal .modal textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(68, 68, 68, 0.6);
    background: linear-gradient(135deg, #181a1f 0%, #1a1c21 100%);
    color: #f0f0f0;
    font-size: 15px;
    transition: all 0.25s ease;
    margin-bottom: 4px;
    outline: none;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

#autofind-modal .modal input::placeholder {
    color: #888;
    font-style: italic;
    opacity: 0.8;
}

#autofind-modal .modal input:focus,
#autofind-modal .modal select:focus,
#autofind-modal .modal textarea:focus {
    border-color: #8be9fd;
    box-shadow: 
        0 0 0 3px rgba(139, 233, 253, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1) inset,
        0 1px 0 rgba(139, 233, 253, 0.1);
    background: linear-gradient(135deg, #1a1c21 0%, #1c1e23 100%);
}

#autofind-modal .modal input:hover:not(:focus),
#autofind-modal .modal select:hover:not(:focus),
#autofind-modal .modal textarea:hover:not(:focus) {
    border-color: rgba(139, 233, 253, 0.4);
    background: linear-gradient(135deg, #1a1c21 0%, #1c1e23 100%);
}

/* Enhanced suffix form styling with better visual feedback */
#autofind-modal .modal .autofind-suffix-form {
    background: linear-gradient(135deg, #23272e 0%, #262b32 100%);
    border: 1px solid #555a;
    border-radius: 8px;
    padding: 16px 18px 12px 18px;
    box-shadow: 0 3px 10px #0003, inset 0 1px 0 #8be9fd08;
    margin-bottom: 0;
    transition: all 0.2s ease;
    position: relative;
}

#autofind-modal .modal .autofind-suffix-form:hover {
    border-color: #8be9fd66;
    box-shadow: 0 4px 16px #0005, inset 0 1px 0 #8be9fd15;
    transform: translateY(-1px);
}

#autofind-modal .modal .autofind-suffix-form:focus-within {
    border-color: #8be9fd;
    box-shadow: 0 4px 20px #0006, inset 0 1px 0 #8be9fd20;
    transform: translateY(-2px);
}

#autofind-modal .modal .autofind-suffix-form label {
    margin-bottom: 8px;
    font-size: 14.5px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#autofind-modal .modal button[type="button"],
#autofind-modal .modal button[type="submit"] {
    margin-top: 14px;
    background: linear-gradient(135deg, #007acc 0%, #0066bb 50%, #50fa7b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(0, 122, 204, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#autofind-modal .modal button[type="button"]::before,
#autofind-modal .modal button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#autofind-modal .modal button[type="button"]:hover::before,
#autofind-modal .modal button[type="submit"]:hover::before {
    left: 100%;
}

#autofind-modal .modal button[type="button"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, #555 0%, #666 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#autofind-modal .modal button[type="submit"] {
    margin-top: 24px;
    background: linear-gradient(135deg, #50fa7b 0%, #00d966 50%, #007acc 100%);
    box-shadow: 
        0 4px 12px rgba(80, 250, 123, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 rgba(0, 0, 0, 0.1) inset;
}

#autofind-modal .modal button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #50fa7b 0%, #00d966 30%, #005fa3 100%);
    box-shadow: 
        0 6px 16px rgba(80, 250, 123, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px) scale(1.02);
}

#autofind-modal .modal button[type="button"]:hover:not(:disabled),
#autofind-modal .modal button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(135deg, #005fa3 0%, #0055aa 50%, #50fa7b 100%);
    box-shadow: 
        0 6px 16px rgba(0, 122, 204, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transform: translateY(-2px) scale(1.02);
}

#autofind-modal .modal .autofind-btn-group {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

#autofind-modal .modal .autofind-btn-group button {
    flex: 1;
    margin-top: 0;
}

#autofind-modal .modal button[type="button"]:hover:not(:disabled),
#autofind-modal .modal button[type="submit"]:hover:not(:disabled) {
    background: linear-gradient(90deg, #005fa3 70%, #50fa7b 120%);
    box-shadow: 0 4px 16px #50fa7b33;
    transform: translateY(-2px) scale(1.02);
}

/* Add ripple effect */
#autofind-modal .modal button:active:not(:disabled)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

@keyframes autofind-fadein {
    from { opacity: 0; transform: scale(0.97) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Add transition animations for hiding/showing sections */
#autofind-modal .modal .autofind-help-section,
#autofind-modal .modal form {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#autofind-modal .modal .autofind-help-section[style*="display: none"],
#autofind-modal .modal form[style*="display: none"] {
    opacity: 0;
    transform: translateY(-10px);
}

/* Back button hover effect */
#modal-btn-highlight:hover {
    background: linear-gradient(90deg, #777 0%, #888 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Autofind UI Control */
.hidden {
    display: none !important;
}

/* Preview Section */
#autofind-preview-section {
    margin-top: 20px;
}

.autofind-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.autofind-preview-header h3 {
    margin: 0;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.preview-icon {
    font-size: 1.2em;
}

.changes-badge {
    background: #50fa7b;
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.modal-btn-highlight {
    background: linear-gradient(90deg, #555 0%, #666 100%) !important;
    border: 1px solid #777 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Status Messages */
.status-message {
    color: #fff;
    font-size: 16px;
    margin: 16px 0;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-message.warning {
    color: #ff7979;
    background: #2c1f1f;
    border: 1px solid #ff797944;
}

.status-message.success {
    color: #50fa7b;
    background: #1f2c1f;
    border: 1px solid #50fa7b44;
}

.status-message.error {
    color: #ff5555;
    background: #2c1f1f;
    border: 1px solid #ff555544;
}

.status-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-content strong {
    font-weight: 600;
}

.status-content small {
    color: #ccc;
    font-size: 0.9em;
}

/* Table Container */
.table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    margin: 16px 0;
}

/* Change Table Row Styles */
.change-row {
    background: #1e1e1e;
}

.change-row:nth-child(even) {
    background: #252525;
}

.change-row:hover {
    background: linear-gradient(135deg, #23272e 0%, #2a2f36 100%) !important;
}

/* Behavior Display */
.behavior-display {
    display: flex;
    align-items: center;
    gap: 4px;
}

.behavior-status {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.behavior-status.freeze {
    color: #ff7979;
    background: rgba(255, 121, 121, 0.1);
}

.behavior-status.loop {
    color: #74b9ff;
    background: rgba(116, 185, 255, 0.1);
}

.behavior-status.jump {
    color: #55a3ff;
    background: rgba(85, 163, 255, 0.1);
}

.behavior-status.none {
    color: #666;
    background: rgba(102, 102, 102, 0.1);
}

.target-arrow {
    color: #8be9fd;
    font-weight: bold;
    margin: 0 4px;
}

.target-video {
    font-family: monospace;
    font-size: 0.9em;
    color: #f1fa8c;
    background: rgba(241, 250, 140, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Video filename styling */
.video-filename {
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .autofind-preview-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .autofind-preview-header h3 {
        justify-content: center;
    }
    
    .modal-btn-highlight {
        align-self: center;
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

/* ===== REGENERATE THUMBNAILS MODAL ===== */

#regen-thumbnails-modal .modal {
    max-width: 500px;
    width: 90%;
}

#regen-thumbnails-modal .modal h2 {
    color: #8be9fd;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
}

#regen-thumbnails-modal .modal h2::after {
    content: "🖼️";
    margin-left: 8px;
    font-size: 1.1em;
}

.regen-thumbnails-help-section {
    background: linear-gradient(135deg, #23272e 0%, #262b32 100%);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #ccc;
}

.regen-thumbnails-help-section p {
    margin: 0;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a1c21 0%, #1c1e23 100%);
    transition: all 0.2s ease;
}

.form-group label:hover {
    border-color: #8be9fd;
    background: linear-gradient(135deg, #1c1e23 0%, #1e2025 100%);
}

.form-group input[type="radio"] {
    margin-right: 10px;
    accent-color: #8be9fd;
}

.form-group input[type="radio"]:checked + span {
    color: #8be9fd;
    font-weight: 500;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    margin-left: 24px;
}

.time-input-group input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1a1c21;
    color: #fff;
    font-size: 14px;
}

.time-input-group input[type="number"]:focus {
    border-color: #8be9fd;
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 233, 253, 0.2);
}

.time-input-group span {
    color: #999;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    margin-left: 24px;
    color: #777;
    font-size: 12px;
    font-style: italic;
}

.regen-thumbnails-btn-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #444;
}

.regen-thumbnails-btn-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#regen-thumbnails-cancel-btn {
    background: #444;
    color: #ccc;
}

#regen-thumbnails-cancel-btn:hover {
    background: #555;
    color: #fff;
}

#regen-thumbnails-start-btn {
    background: linear-gradient(135deg, #50fa7b 0%, #4cd964 100%);
    color: #000;
    font-weight: 600;
}

#regen-thumbnails-start-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4cd964 0%, #40c956 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(80, 250, 123, 0.3);
}

#regen-thumbnails-start-btn:active:not(:disabled) {
    transform: translateY(0);
}

#regen-thumbnails-start-btn:disabled {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    color: #ccc;
    cursor: not-allowed !important;
    transform: none;
    box-shadow: none;
}

/* ===== COPY ZONES OPTIONS ===== */

.copy-zones-options {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #23272e 0%, #262b32 100%);
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-mode-btn {
    padding: 10px 16px;
    border: 1px solid #555;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a1c21 0%, #1c1e23 100%);
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-mode-btn:hover {
    border-color: #8be9fd;
    background: linear-gradient(135deg, #1c1e23 0%, #1e2025 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.copy-mode-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.replace-btn:hover {
    border-color: #ff9500;
    color: #ff9500;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.add-btn:hover {
    border-color: #50fa7b;
    color: #50fa7b;
    box-shadow: 0 2px 8px rgba(80, 250, 123, 0.2);
}

/* ===== DASHBOARD STYLES ===== */

.dashboard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #1e1e1e;
  color: #f0f0f0;
  font-family: sans-serif;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 48px;
}

.dashboard-header p {
  font-size: 18px;
  margin: 0;
  color: #f0f0f0;
  opacity: 0.8;
}

.dashboard-options {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.dashboard-option {
  background: #2d3139;
  border: 2px solid #404651;
  border-radius: 12px;
  padding: 32px;
  width: 280px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.dashboard-option:hover {
  background: #363c46;
  border-color: #8be9fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 233, 253, 0.2);
}

.dashboard-option h2 {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: #8be9fd;
}

.dashboard-option p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

.dashboard-option .path {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  background: #1e1e1e;
  padding: 8px 12px;
  border-radius: 6px;
  color: #f8f8f2;
  border: 1px solid #44475a;
  margin-top: 12px;
}

.dashboard-option .icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.logo-dashboard {
  width: 350px;
  margin-bottom: 15px;
}

.path-input {
  width: 100%;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  background: #1e1e1e;
  padding: 8px 12px;
  border-radius: 6px;
  color: #f8f8f2;
  border: 1px solid #44475a;
  margin-top: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.path-input:focus {
  outline: none;
  border-color: #8be9fd;
}

.file-input {
  width: 100%;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  background: #1e1e1e;
  padding: 8px 12px;
  border-radius: 6px;
  color: #f8f8f2;
  border: 1px solid #44475a;
  margin-top: 12px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.file-input:focus {
  outline: none;
  border-color: #8be9fd;
}

.dashboard-option button {
  background: #8be9fd;
  color: #1e1e1e;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: background-color 0.3s ease;
}

.dashboard-option button:hover {
  background: #70d9f0;
}

.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 1000;
  display: none;
}

.status-message.success {
  background: #50fa7b;
  color: #1e1e1e;
}

.status-message.error {
  background: #ff5555;
  color: #f8f8f2;
}

.status-message.info {
  background: #8be9fd;
  color: #1e1e1e;
}

.progress-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #2d3139;
  border: 2px solid #404651;
  border-radius: 12px;
  padding: 32px;
  width: 400px;
  text-align: center;
  z-index: 2000;
  display: none;
}

.progress-container h3 {
  margin: 0 0 16px 0;
  color: #8be9fd;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-fill {
  height: 100%;
  background: #8be9fd;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.9;
}

.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
}

/* Dashboard Project List Styles */
#projects-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2b2b2b;
}

.project-item {
  padding: 12px 15px;
  border-bottom: 1px solid #444;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-item:last-child {
  border-bottom: none;
}

.project-item:hover {
  background-color: #404040;
}

.project-info {
  flex: 1;
}

.project-name {
  font-weight: bold;
  color: #8be9fd;
  margin-bottom: 4px;
}

.project-details {
  font-size: 0.85em;
  color: #999;
}

.loading-projects {
  padding: 20px;
  text-align: center;
  color: #999;
}

.no-projects {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
}

.manual-path-section {
  opacity: 0.7;
}

/* Edit Project Info Modal Styles */
.project-info-help-section {
  background: #2d3142;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #50fa7b;
}

.project-info-help-section p {
  margin: 0;
  color: #f8f8f2;
  font-size: 14px;
  line-height: 1.4;
}

.project-info-btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #44475a;
}

.project-info-btn-group button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

.project-info-btn-group button:first-child {
  background: #6272a4;
  color: #f8f8f2;
}

.project-info-btn-group button:first-child:hover {
  background: #7c8db8;
}

.project-info-btn-group button:last-child {
  background: #50fa7b;
  color: #282a36;
}

.project-info-btn-group button:last-child:hover {
  background: #5af78e;
}

#project-info-form {
  margin-bottom: 20px;
}

#project-info-form .form-group {
  margin-bottom: 20px;
}

#project-info-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: #f8f8f2;
  font-weight: 500;
  font-size: 14px;
}

#project-info-form .form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #44475a;
  border-radius: 6px;
  background: #1e1e1e;
  color: #f8f8f2;
  font-size: 14px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

#project-info-form .form-group input:focus {
  outline: none;
  border-color: #50fa7b;
}

#project-info-form .form-group input::placeholder {
  color: #6272a4;
}

#project-info-form .form-group small {
  display: block;
  margin-top: 6px;
  color: #6272a4;
  font-size: 12px;
  line-height: 1.3;
}