:root {
    --bg-primary: #191919;
    --bg-secondary: #2f2f2f;
    --bg-tertiary: rgba(90, 90, 90, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #737373;
    --border-color: #404040;
    --accent-blue: #2183f0;
    --status-potential: #5a5a5a;
    --status-approached: #808080;
    --status-followup: #ca8a04;
    --status-followup-sent: #ca8a04;
    --status-reaction: #ca8a04;
    --status-interested: #ca8a04;
    --status-quote-progress: #ca8a04;
    --status-quote-made: #ca8a04;
    --status-quote: #eab308;
    --status-order: #22c55e;
    --status-production: #3b82f6;
    --status-testing: #3b82f6;
    --status-lost: #dc2626;
    --status-completed: #3b82f6;
    --user: #808080;
    --hover-bg: #3a3a3a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

body::-webkit-scrollbar {
    height: 20px !important;
    width: 12px !important;
}

body::-webkit-scrollbar-track {
    background-color: var(--bg-primary) !important;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary) !important;
    border-radius: 10px !important;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-bg) !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
    height: 15px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-bg);
}


.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tab System */
.tab-system {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    gap: 12px;
}

.tab-header {
    display: flex;
    align-items: center;
    overflow-x: auto;
    background-color: var(--bg-secondary);
}

.tab-header::-webkit-scrollbar {
    height: 0;
    display: none;
}

.tab-header {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0;
    min-width: 120px;
    max-width: 200px;
    font-size: 13px;
    position: relative;
    border-right: 1px solid var(--border-color);
    height: 40px;
}

.tab.active {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-bottom: none;
}

.tab:hover:not(.active) {
    background-color: var(--hover-bg);
}

.tab:hover::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--hover-bg));
    pointer-events: none;
}

.tab.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, rgba(64, 64, 64, 0), var(--bg-primary) 60%);
    pointer-events: none;
}

.tab-close-btn {
    display: none;
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 16px;
    line-height: 1;
    border-radius: 3px;
    z-index: 1;
}

.tab:hover .tab-close-btn,
.tab.active .tab-close-btn {
    display: block;
}

.tab-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tab-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.add-tab-btn {
    width: 28px;
    height: 28px;
    border: none;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.add-tab-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 100px 16px;
}

.header-left {
    flex: 1;
}

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

.logo i {
    font-size: 32px;
    color: var(--accent-blue);
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

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

.header-actions button {
    padding: 8px 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions button:hover {
    background-color: var(--hover-bg);
}

.new-project-btn {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

/* View Switcher */
.view-switcher {
    display: flex;
    gap: 4px;
    padding: 0 100px 24px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.view-btn.active {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.view-btn:hover:not(.active) {
    background-color: var(--hover-bg);
}

/* Board View */
.board-view {
    flex: 1;
    overflow: auto;
    padding: 0 100px 48px;
}

.board-view::-webkit-scrollbar {
    height: 20px !important;
}

.board-view::-webkit-scrollbar-track {
    background-color: var(--bg-primary) !important;
}

.board-view::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary) !important;
    border-radius: 10px !important;
}

.board-view::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-bg) !important;
}

.board-columns {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
}

.board-column {
    min-width: 280px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: calc(100vh - 280px);
}

.board-column[data-status="potential"] {
    background-color: rgba(90, 90, 90, 0.15);
}

.board-column[data-status="approached"] {
    background-color: rgba(128, 128, 128, 0.12);
}

.board-column[data-status="followup"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="followup-sent"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="reaction"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="interested"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="quote-progress"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="quote-made"] {
    background-color: rgba(202, 138, 4, 0.08);
}

.board-column[data-status="quote"] {
    background-color: rgba(234, 179, 8, 0.08);
}

.board-column[data-status="order"] {
    background-color: rgba(34, 197, 94, 0.08);
}

.board-column[data-status="production"] {
    background-color: rgba(59, 130, 246, 0.08);
}

.board-column[data-status="testing"] {
    background-color: rgba(59, 130, 246, 0.08);
}

.board-column[data-status="lost"] {
    background-color: rgba(220, 38, 38, 0.08);
}

.board-column[data-status="completed"] {
    background-color: rgba(59, 130, 246, 0.08);
}

/* Followup count badge */
.followup-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.followup-badge i {
    font-size: 10px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.potential { background-color: var(--status-potential); }
.status-indicator.approached { background-color: var(--status-approached); }
.status-indicator.followup { background-color: var(--status-followup); }
.status-indicator.followup-sent { background-color: var(--status-followup-sent); }
.status-indicator.reaction { background-color: var(--status-reaction); }
.status-indicator.interested { background-color: var(--status-interested); }
.status-indicator.quote-progress { background-color: var(--status-quote-progress); }
.status-indicator.quote-made { background-color: var(--status-quote-made); }
.status-indicator.quote { background-color: var(--status-quote); }
.status-indicator.order { background-color: var(--status-order); }
.status-indicator.production { background-color: var(--status-production); }
.status-indicator.testing { background-color: var(--status-testing); }
.status-indicator.lost { background-color: var(--status-lost); }
.status-indicator.completed { background-color: var(--status-completed); }

.column-title {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.project-count {
    color: var(--text-muted);
    font-size: 12px;
}

.column-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.column-menu-btn:hover {
    background-color: var(--hover-bg);
}

.column-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: visible;
    /* Default visible */
    min-height: 100px;
    /* Minimum for empty/small columns */
}

.add-project-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.add-project-btn:hover {
    background-color: var(--hover-bg);
    border-color: var(--text-secondary);
}

.project-card {
    background-color: var(--bg-tertiary);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
}

.project-card-header h3 {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    padding-right: 8px;
}

.project-card-menu-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.project-card:hover .project-card-menu-btn {
    opacity: 1;
}

.project-card-menu-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.project-card-menu-btn:active {
    transform: scale(0.95);
}

.project-card + .project-card {
    margin-top: 8px;
}

.project-card + .add-project-btn {
    margin-top: 8px;
}

[data-status="potential"] .project-card {
    background-color: rgba(90, 90, 90, 0.2);
}

[data-status="approached"] .project-card {
    background-color: rgba(128, 128, 128, 0.15);
}

[data-status="followup"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="followup-sent"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="reaction"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="interested"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="quote-progress"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="quote-made"] .project-card {
    background-color: rgba(202, 138, 4, 0.12);
}

[data-status="quote"] .project-card {
    background-color: rgba(234, 179, 8, 0.12);
}

[data-status="order"] .project-card {
    background-color: rgba(34, 197, 94, 0.12);
}

[data-status="production"] .project-card {
    background-color: rgba(59, 130, 246, 0.12);
}

[data-status="testing"] .project-card {
    background-color: rgba(59, 130, 246, 0.12);
}

[data-status="lost"] .project-card {
    background-color: rgba(220, 38, 38, 0.12);
}

[data-status="completed"] .project-card {
    background-color: rgba(59, 130, 246, 0.12);
}

.project-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}


.project-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.project-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.project-tag.priority-high { 
    background-color: rgba(239, 68, 68, 0.2); 
    color: #fca5a5; 
}

.project-tag.priority-medium { 
    background-color: rgba(245, 158, 11, 0.2); 
    color: #fbbf24; 
}

.project-tag.priority-low { 
    background-color: rgba(34, 197, 94, 0.2); 
    color: #86efac; 
}

.project-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.close-btn:hover {
    background-color: var(--hover-bg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn,
.save-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cancel-btn:hover {
    background-color: var(--hover-bg);
}

.save-btn {
    background-color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    color: white;
}

.save-btn:hover {
    background-color: #1d72d8;
}

/* Project Detail View */
.project-detail {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.project-detail.active {
    display: flex;
}

.project-detail-header {
    padding: 48px 96px 24px 96px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.project-icon {
    font-size: 48px;
    color: var(--accent-blue);
}

.project-detail-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    border: none;
    background: transparent;
    outline: none;
    padding: 4px;
    border-radius: 4px;
}

.project-detail-title:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.project-detail-title:focus {
    background-color: var(--bg-secondary);
}

.project-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
}

.project-menu-btn:hover {
    background-color: var(--hover-bg);
}

.project-detail-content {
    flex: 1;
    padding: 0 96px 48px 96px;
    overflow-y: auto;
}

.project-properties-header {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.property-header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    flex: 0 0 180px;
}

.property-header-item i {
    font-size: 12px;
}

.project-properties-values {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.property-value-item {
    flex: 0 0 180px;
    min-width: 0;
}

.property-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.property-inline i {
    color: var(--text-muted);
    font-size: 13px;
}

.property-label-inline {
    color: var(--text-muted);
}

.property-input-inline {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit;
}

.property-input-inline:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.property-input-inline:focus {
    outline: none;
    background-color: var(--bg-secondary);
}

.property-input-inline::placeholder {
    color: var(--text-muted);
}

.priority-select option[value="low"] {
    color: #86efac;
}

.priority-select option[value="medium"] {
    color: #fbbf24;
}

.priority-select option[value="high"] {
    color: #fca5a5;
}

.section-group {
    margin-bottom: 40px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
}

.property-row i {
    color: var(--text-muted);
    width: 20px;
    font-size: 14px;
}

.property-label-row {
    color: var(--text-muted);
    min-width: 180px;
}

.property-input-row {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: inherit;
}

.property-input-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.property-input-row:focus {
    outline: none;
    background-color: var(--bg-secondary);
}

.property-input-row::placeholder {
    color: var(--text-muted);
}

.add-property-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px 0;
    cursor: pointer;
}

.add-property-btn:hover {
    color: var(--text-primary);
}

.notes-editor-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: transparent;
    border: none;
    min-height: 50px;
    padding: 12px;
    border-radius: 4px;
}

.notes-editor-wrapper:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.notes-editor-wrapper i {
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-muted);
}

.notes-editor-inline {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.notes-editor-inline:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

.notes-editor {
    background-color: transparent;
    border: none;
    min-height: 150px;
    padding: 12px;
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.notes-editor:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.notes-editor[contenteditable="true"]:focus {
    outline: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.notes-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-muted);
}

/* Fullscreen Mode */
.project-detail.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: var(--bg-primary);
}

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

    .view-switcher {
        padding: 0 20px 16px;
        overflow-x: auto;
    }

    .board-view {
        padding: 0 20px 20px;
    }

    .board-columns {
        gap: 12px;
    }

    .board-column {
        min-width: 250px;
    }

    .project-detail-content {
        padding: 16px 20px;
    }

    .project-properties {
        grid-template-columns: 1fr;
    }
}

/* Drag and Drop */
.column-content.drag-over {
    background-color: rgba(33, 131, 240, 0.1);
}

.project-card.dragging {
    opacity: 0.3;
}

.drag-indicator {
    height: 2px;
    background-color: var(--accent-blue);
    margin: 4px 0;
    border-radius: 1px;
    transition: all 0.15s ease;
}

/* List View */
.list-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 100px 48px;
    overflow: auto;
}

.list-view::-webkit-scrollbar {
    height: 20px !important;
}

.list-view::-webkit-scrollbar-track {
    background-color: var(--bg-primary) !important;
}

.list-view::-webkit-scrollbar-thumb {
    background-color: var(--bg-tertiary) !important;
    border-radius: 10px !important;
}

.list-view::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-bg) !important;
}

.list-table {
    background-color: transparent;
    border-radius: 8px;
    overflow: visible;
    display: table;
    min-width: 100%;
    width: max-content;
}

.list-header {
    display: flex;
    align-items: center;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.list-header .list-cell {
    border-right: none;
}

.list-body {
    overflow: visible;
}

.list-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s;
    min-height: 48px;
    position: relative;
}

.list-row::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 0;
    bottom: 0;
    width: 100px;
    pointer-events: auto;
}

.list-row:hover {
    background-color: transparent;
}

.list-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 14px;
    border-right: 1px solid var(--border-color);
}

.list-cell:last-child {
    border-right: none;
}

.list-cell i {
    color: var(--text-muted);
    font-size: 12px;
}

.list-row-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.15s, visibility 0.15s;
}

.list-row:hover .list-row-controls-overlay {
    opacity: 1;
    visibility: visible;
}

.list-cell-name:has(.project-name-editable:focus) .list-row-controls-overlay {
    opacity: 0;
    visibility: hidden;
}

.list-row-controls-left {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}


.list-row:hover .list-row-controls-left,
.list-row-controls-left:hover {
    opacity: 1;
    visibility: visible;
}

.list-row-controls-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
}

.list-control-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.list-control-btn:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.list-control-btn i {
    font-size: 11px;
}

.list-control-btn:last-child {
    margin-right: 8px;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.list-control-btn:last-child:hover {
    margin-right: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.add-below-btn {
    padding: 4px 6px;
}

.drag-handle {
    padding: 4px 8px;
    cursor: grab !important;
}

.drag-handle:active {
    cursor: grabbing !important;
}

.list-control-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--text-muted);
    border-radius: 3px;
    margin-left: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.15s;
    position: relative;
}

.list-control-checkbox:hover {
    border-color: var(--text-secondary);
}

.list-control-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.list-control-checkbox::after {
    content: '';
    position: absolute;
    display: none;
    width: 4px;
    height: 8px;
    border: solid var(--text-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 2px;
}

.list-control-checkbox input[type="checkbox"]:checked ~ ::after,
.list-control-checkbox:has(input[type="checkbox"]:checked)::after {
    display: block;
}

.list-cell-name {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.list-cell-name:hover .project-name-text {
    color: var(--accent-blue);
}

.open-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
}

.list-cell-assigned {
    width: 140px;
    flex-shrink: 0;
}

.list-cell-status {
    width: 150px;
    flex-shrink: 0;
}

.list-cell-date {
    width: 120px;
    flex-shrink: 0;
}

.list-cell-priority {
    width: 120px;
    flex-shrink: 0;
}

.list-cell-contact {
    width: 180px;
    flex-shrink: 0;
}

.list-cell-budget {
    width: 150px;
    flex-shrink: 0;
}

.list-cell-files {
    width: 180px;
    flex-shrink: 0;
}

.list-cell-place {
    width: 150px;
    flex-shrink: 0;
}

.list-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: inherit;
}

.list-input:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.list-input:focus {
    outline: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--accent-blue);
}

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

.list-select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
}

.list-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.list-select:focus {
    outline: none;
    background-color: var(--bg-tertiary);
}

.status-select option {
    background-color: var(--bg-tertiary);
}

.priority-select-list option {
    background-color: var(--bg-tertiary);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.potential {
    background-color: rgba(90, 90, 90, 0.25);
    color: #a0a0a0;
}

.status-badge.approached {
    background-color: rgba(128, 128, 128, 0.15);
    color: #ffffff;
}

.status-badge.followup {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.followup-sent {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.reaction {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.interested {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.quote-progress {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.quote-made {
    background-color: rgba(202, 138, 4, 0.15);
    color: #ffffff;
}

.status-badge.quote {
    background-color: rgba(234, 179, 8, 0.15);
    color: #ffffff;
}

.status-badge.order {
    background-color: rgba(34, 197, 94, 0.15);
    color: #ffffff;
}

.status-badge.production {
    background-color: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.status-badge.testing {
    background-color: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.status-badge.lost {
    background-color: rgba(220, 38, 38, 0.15);
    color: #ffffff;
}

.status-badge.completed {
    background-color: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.priority-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge.low {
    background-color: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.priority-badge.medium {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.priority-badge.high {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.list-add-btn {
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-align: left;
    flex-shrink: 0;
}

.list-add-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.dragging-list-row {
    opacity: 0.5;
}

.badge-selector {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-block;
}

.badge-selector:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.badge-menu {
    position: fixed;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 260px;
    max-width: 300px;
    padding: 8px 0;
}

.badge-menu-section {
    padding: 4px 0;
}

.badge-menu-section + .badge-menu-section {
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 8px;
}

.badge-menu-title {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s;
}

.badge-menu-item:hover {
    background-color: var(--hover-bg);
}

.badge-menu-item i {
    color: var(--text-muted);
    font-size: 12px;
}

/* Project Context Menu */
.project-context-menu {
    position: fixed;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 200px;
    padding: 8px 0;
}

.context-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.15s;
    color: var(--text-primary);
    font-size: 14px;
}

.context-menu-item:hover {
    background-color: var(--hover-bg);
}

.context-menu-item.delete-item {
    color: #ef4444;
}

.context-menu-item.delete-item:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

.context-menu-item i {
    width: 16px;
    font-size: 14px;
}

/* Confirm Dialog */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-dialog {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.confirm-dialog-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-dialog-header i {
    font-size: 24px;
    color: #f59e0b;
}

.confirm-dialog-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-dialog-body {
    padding: 0 24px 24px;
}

.confirm-dialog-body p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.confirm-dialog-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.confirm-cancel-btn,
.confirm-delete-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-cancel-btn {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.confirm-cancel-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.confirm-delete-btn {
    background-color: #dc2626;
    color: white;
}

.confirm-delete-btn:hover {
    background-color: #b91c1c;
}

.user-menu {
    position: relative;
    margin-left: 16px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: var(--hover-bg);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.user-badge {
    background: rgba(90, 90, 90, 0.25);
    color: #a0a0a0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-badge.empty {
    color: #a0a0a0;
}

.icon-color{
    color: var(--accent-blue);
}

.property-readonly {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* File Upload Dialog */
.file-upload-content {
    min-width: 500px;
    max-width: 600px;
}

.file-upload-area {
    border: 2px dashed var(--text-muted);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.file-upload-area:hover {
    border-color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.file-upload-area.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: scale(1.02);
}

.file-upload-area i {
    font-size: 48px;
    color: #c1cddf;
    margin-bottom: 16px;
}

.file-upload-area p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.file-upload-hint {
    font-size: 12px !important;
    color: #94a3b8 !important;
}

/* Selected Files Preview */
.selected-files-preview {
    max-height: 300px;
    overflow-y: auto;
    margin: 16px 0;
}

.files-preview-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px dashed var(--text-muted);
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-preview-item i {
    font-size: 20px;
    color: var(--accent-blue);
}

.file-preview-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-size {
    font-size: 12px;
    color: var(--text-primary);
}

.file-preview-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.file-preview-remove:hover {
    background: var(--text-secondary);
}

/* Files Container in Property Row */
.files-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.upload-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    align-self: flex-start;
}

.upload-file-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.upload-file-btn i {
    font-size: 14px;
    color: var(--text-primary);
}

/* Files List */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-files {
    color: #94a3b8;
    font-size: 14px;
    font-style: italic;
    padding: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px dashed var(--text-muted);
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 375px;
}

.file-item:hover {
    border-color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.file-item-icon {
    font-size: 24px;
    color: var(--accent-blue);
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-meta {
    font-size: 12px;
    color: var(--text-primary);
    margin-top: 4px;
}

.file-item-actions {
    display: flex;
    gap: 4px;
}

.file-action-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.file-action-btn:hover {
    background: var(--text-secondary);
    color: #1e293b;
}

.file-action-btn.delete-btn:hover {
    background: var(--text-secondary);
    color: #ef4444;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 20px;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info i {
    color: #3b82f6;
}

/* Upload Confirm Button with Spinner */
.upload-confirm-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Warning Notification */
.warning-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-200px);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    max-width: 600px;
    animation: slideDown 0.3s ease;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
}

.warning-notification.show {
    transform: translateX(-50%) translateY(0);
}

.warning-notification .warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.warning-notification i {
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.warning-notification span {
    font-size: 14px;
    line-height: 1.5;
}

.warning-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.warning-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-200px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .warning-notification {
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        transform: translateY(-200px);
    }

    .warning-notification.show {
        transform: translateY(0);
    }
}

/* Warning Countdown */
.warning-countdown {
    font-size: 13px;
    color: white;
    opacity: 0.9;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.warning-countdown strong {
    font-size: 16px;
    font-weight: 700;
    min-width: 12px;
    text-align: center;
}

/* Warning with spinner */
.warning-notification .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success state */
.warning-notification .fa-check-circle {
    color: #10b981;
}

/* Error state */
.warning-notification .fa-exclamation-triangle {
    color: #ef4444;
}

/* Toast with more info */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    border-left: 4px solid;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-notification span {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.4;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast-info i {
    color: #3b82f6;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.fa-dollar-sign {
    color: var(--text-muted);
}

/* Hide drag handles in detail view */
.project-detail .property-drag-handle {
    display: none !important;
}

/* Remove draggable cursor */
.project-detail .draggable-property {
    cursor: default !important;
}

/* Remove left padding that was for drag handle */
.project-detail .property-row {
    padding-left: 0 !important;
}

/* Lead Finder Styling */
#lead-finder {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: auto;
    background-color: var(--bg-primary);
}

#lead-finder.active {
    display: flex;
}

#leadFinderResults {
    max-height: 900px;
    overflow-y: auto;
}

#leadFinderResults::-webkit-scrollbar {
    width: 8px;
}

#leadFinderResults::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

#leadFinderResults::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.project-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-color) !important;
}

.project-card-footer i {
    font-size: 11px !important;
    opacity: 0.6;
}

.project-card-footer div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card-footer div:empty {
    flex: 1;
}

@media (max-width: 768px) {
    .project-card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .project-card-footer div {
        width: 100%;
    }
}

/* Email button in board view */
.project-card-email-btn {
    position: absolute;
    top: 25px;
    right: -8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.project-card:hover .project-card-email-btn {
    opacity: 1;
}

.project-card-email-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: var(--accent-blue);
}

.project-card-email-btn:active {
    transform: scale(0.95);
}

.email-form .form-group:last-of-type {
    margin-bottom: 0;
}

/* Email Template Selector */
.email-template-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.email-template-selector label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.email-template-select {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.email-template-select:hover {
    border-color: var(--text-secondary);
}

.email-template-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.email-template-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* Email Modal */
.email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.email-modal-content {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.email-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.email-form .form-group {
    margin-bottom: 0;
}

.email-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.email-form input,
.email-form textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}

.email-form input:focus,
.email-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.email-form textarea {
    min-height: 150px;
    resize: vertical;
}

.email-form textarea#emailPreview {
    background: var(--bg-tertiary);
    cursor: default;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.form-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.email-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.webhook-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.webhook-warning i {
    font-size: 16px;
}

/* Email Preview Textarea Styling */
#emailPreview {
    font-family: 'Courier New', 'Courier', monospace !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #9ca3af !important;
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px !important;
    border-radius: 6px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

#emailPreview::-webkit-scrollbar {
    width: 6px;
}

#emailPreview::-webkit-scrollbar-track {
    background: transparent;
}

#emailPreview::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

#emailPreview::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Email body textarea - zorg dat het groot genoeg is */
#emailBody {
    min-height: 200px !important;
}

/* Email form styling improvements */
.email-form .form-group:last-of-type {
    margin-bottom: 0;
}

/* Approach type badges */
.approach-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.approach-badge.normal {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.approach-badge.onderzoek {
    background-color: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}