/* ===== TICKET PAGE SPECIFIC STYLES ===== */ /* Status colors for ticket page */ .status-Open, [id="statusDisplay"].status-Open { background-color: var(--status-open) !important; color: white !important; padding: 8px 16px; border-radius: 6px; font-weight: 500; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; } .status-In-Progress, [id="statusDisplay"].status-In-Progress { background-color: var(--status-in-progress) !important; color: #212529 !important; padding: 8px 16px; border-radius: 6px; font-weight: 500; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; } .status-Closed, [id="statusDisplay"].status-Closed { background-color: var(--status-closed) !important; color: white !important; padding: 8px 16px; border-radius: 6px; font-weight: 500; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; } /* Base Layout Components */ .ticket-container { width: 90%; height: auto !important; min-height: 900px !important; min-width: 800px; max-width: 1800px; margin: 40px auto; padding: 20px; background: var(--bg-secondary); border-radius: 12px; box-shadow: var(--shadow); border-left: 6px solid; transition: border-color 0.3s ease; } /* Priority border colors */ [data-priority="1"] { border-color: var(--priority-1); } [data-priority="2"] { border-color: var(--priority-2); } [data-priority="3"] { border-color: var(--priority-3); } [data-priority="4"] { border-color: var(--priority-4); } [data-priority="5"] { border-color: var(--priority-5); } /* Header Components */ .ticket-header { display: flex; flex-direction: column; margin-bottom: 30px; width: 100%; overflow-wrap: break-word; } .ticket-subheader { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; } .ticket-details { margin-top: 30px; padding: 20px; background: var(--bg-primary); border-radius: 8px; } .header-controls { display: flex; gap: 15px; align-items: center; } .ticket-id { font-family: 'Courier New', monospace; margin-right: 20px; } .status-priority-group { display: flex; gap: 10px; align-items: center; margin-right: 15px; } .priority-indicator { padding: 4px 8px; border-radius: 4px; font-weight: bold; } /* Title Input Styles */ .title-input { font-size: 1em; font-weight: bold; width: 100%; border: 2px solid transparent; border-radius: 4px; padding: 12px; margin: -4px; word-break: break-word; overflow-wrap: break-word; white-space: pre-wrap; display: block; line-height: 1.4; min-height: fit-content; height: auto; } .title-input:not(:disabled) { border-color: var(--border-color); background: var(--bg-primary); } .title-input:not(:disabled):hover { border-color: #3b82f6; } .title-input:disabled { color: var(--text-primary); border: none; background: transparent; } /* Form Elements */ .detail-group { margin-bottom: 30px; padding: 15px; } .detail-group label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-weight: 500; } .full-width { grid-column: 1 / -1; } .editable { padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-primary); color: var(--text-primary); transition: all 0.3s ease; } input.editable { width: calc(100% - 20px); box-sizing: border-box; } textarea.editable { width: calc(100% - 20px); min-height: 800px !important; height: auto !important; box-sizing: border-box; white-space: pre; font-family: monospace; line-height: 1.2; } #description-tab { min-height: 850px !important; height: auto !important; padding-bottom: 20px; } .editable:disabled { background: var(--bg-secondary); cursor: default; border-color: transparent; } /* Button Styles */ .btn { padding: 10px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; background: var(--bg-primary); color: var(--text-primary); transition: all 0.3s ease; } .btn.primary { background: #3b82f6; color: white; } .btn.active { background: #3b82f6; color: white; } .btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } /* Comments Section */ .comments-section { margin-top: 40px; padding: 25px; background: var(--bg-secondary); border-radius: 8px; } .comment-form { margin-bottom: 20px; } .comment-form textarea { width: calc(100% - 20px); min-height: 80px; margin-bottom: 10px; padding: 10px; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); } .comment { background: var(--bg-primary); padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9em; } .comment-user { font-weight: bold; color: var(--text-primary); } .comment-date { color: var(--text-secondary); } .comment-text { color: var(--text-primary); line-height: 1.6; word-wrap: break-word; margin: 0; padding: 0; white-space: normal; } .comment-text p { margin: 0.5em 0; } .comment-text p:first-child { margin-top: 0; } .comment-text p:last-child { margin-bottom: 0; } .comment-controls { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; } /* Comment Tabs */ .ticket-tabs { display: flex; gap: 10px; margin: 20px 0; } .tab-btn { padding: 12px 24px; border: 1px solid var(--border-color); background: var(--bg-secondary); border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 1.1em; transition: all 0.3s ease; } .tab-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .tab-btn.active { background: #3b82f6; color: white; border-color: #3b82f6; } .tab-content { display: none; } .tab-content.active { display: block; } /* Markdown Styles */ .markdown-preview { min-height: 100px; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-primary); } .markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { margin-top: 0; } .markdown-preview code { background: var(--bg-secondary); padding: 2px 4px; border-radius: 4px; } .markdown-preview pre { background: var(--bg-secondary); padding: 10px; border-radius: 6px; overflow-x: auto; } .markdown-toggles { display: flex; gap: 20px; } /* Toggle Switch */ .switch { position: relative; display: inline-block; width: 50px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-secondary); transition: .4s; } .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; } .slider.round { border-radius: 24px; } .slider.round:before { border-radius: 50%; } input:checked + .slider { background-color: #3b82f6; } input:checked + .slider:before { transform: translateX(26px); } .switch input:disabled + .slider { opacity: 0.5; cursor: not-allowed; } /* Footer */ .ticket-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); } .back-btn { background: var(--bg-secondary); color: var(--text-primary); padding: 10px 20px; border-radius: 6px; border: 1px solid var(--border-color); cursor: pointer; transition: background-color 0.3s ease; } .back-btn:hover { background: var(--border-color); } /* Activity Timeline Styles */ .timeline-container { padding: 1rem; max-width: 800px; } .timeline-event { display: flex; gap: 1rem; margin-bottom: 1.5rem; position: relative; } .timeline-event:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 30px; bottom: -24px; width: 2px; background: var(--border-color, #ddd); } .timeline-icon { font-size: 1.5rem; flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; } .timeline-content { flex: 1; background: var(--card-bg, #f8f9fa); padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--border-color, #ddd); } .timeline-header { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; } .timeline-action { color: var(--text-muted, #666); font-size: 0.9rem; } .timeline-date { margin-left: auto; color: var(--text-muted, #999); font-size: 0.85rem; } .timeline-details { font-size: 0.9rem; color: var(--text-secondary, #555); padding-top: 0.5rem; border-top: 1px solid var(--border-color, #eee); } body.dark-mode .timeline-content { --card-bg: #2d3748; --border-color: #444; --text-muted: #a0aec0; --text-secondary: #cbd5e0; background: #2d3748; color: #f7fafc; } body.dark-mode .timeline-header strong { color: #f7fafc; } body.dark-mode .timeline-action { color: #a0aec0; } body.dark-mode .timeline-date { color: #718096; } /* Status select dropdown */ .status-select { padding: 8px 16px; border-radius: 6px; font-weight: 500; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; } .status-select:hover { opacity: 0.9; border-color: rgba(255, 255, 255, 0.3); } .status-select:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); } /* Status colors for dropdown */ .status-select.status-open { background-color: var(--status-open) !important; color: white !important; } .status-select.status-in-progress { background-color: var(--status-in-progress) !important; color: #212529 !important; } .status-select.status-closed { background-color: var(--status-closed) !important; color: white !important; } .status-select.status-resolved { background-color: #28a745 !important; color: white !important; } /* Dropdown options inherit colors */ .status-select option { background-color: var(--bg-primary); color: var(--text-primary); padding: 8px; } body.dark-mode .status-select option { background-color: #2d3748; color: #f7fafc; } /* Dark mode for Activity tab and general improvements */ body.dark-mode .tab-content { color: var(--text-primary, #f7fafc); } body.dark-mode #activity-tab { background: var(--bg-secondary, #1a202c); color: var(--text-primary, #f7fafc); } body.dark-mode #activity-tab p { color: var(--text-primary, #f7fafc); } /* Comprehensive Dark Mode Fix - Ensure no white on white */ body.dark-mode { --bg-primary: #1a202c; --bg-secondary: #2d3748; --bg-tertiary: #4a5568; --text-primary: #e2e8f0; --text-secondary: #cbd5e0; --text-muted: #a0aec0; --border-color: #4a5568; --card-bg: #2d3748; } /* Ensure ticket container has dark background */ body.dark-mode .ticket-container { background: #1a202c !important; color: #e2e8f0 !important; } /* Ensure all ticket details sections are dark */ body.dark-mode .ticket-details { background: #1a202c !important; color: #e2e8f0 !important; } /* Ensure detail groups are dark */ body.dark-mode .detail-group { background: transparent !important; color: #e2e8f0 !important; } /* Ensure labels are visible */ body.dark-mode .detail-group label, body.dark-mode label { color: #cbd5e0 !important; } /* Fix textarea and input fields */ body.dark-mode textarea, body.dark-mode input[type="text"] { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; } /* Ensure timeline event backgrounds are dark */ body.dark-mode .timeline-event { background: transparent !important; } /* Fix any remaining white text issues */ body.dark-mode .timeline-details { color: #cbd5e0 !important; background: transparent !important; } /* Fix comment sections */ body.dark-mode .comment { background: #2d3748 !important; color: #e2e8f0 !important; } body.dark-mode .comment-text { color: #e2e8f0 !important; } body.dark-mode .comment-header { color: #cbd5e0 !important; } /* Fix any form elements */ body.dark-mode select, body.dark-mode .editable { background: #2d3748 !important; color: #e2e8f0 !important; border-color: #4a5568 !important; }