/* Document Workflow Tracker Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #e0e0e0; min-height: 100vh; }

.header { background: rgba(0, 0, 0, 0.3); padding: 20px; border-bottom: 2px solid #4a9eff; display: flex; justify-content: space-between; align-items: center; }
.header h1 { color: #4a9eff; font-size: 1.6em; }
.header-stats { display: flex; gap: 30px; }
.header-stat { text-align: center; }
.header-stat .value { font-size: 1.8em; font-weight: bold; color: #fff; }
.header-stat .label { font-size: 0.8em; color: #888; }

.main-container { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 20px; max-width: 1800px; margin: 0 auto; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.filter-panel, .quick-actions { background: rgba(0, 0, 0, 0.4); border-radius: 10px; padding: 20px; border: 1px solid #333; }
.filter-panel h3, .quick-actions h3 { color: #4a9eff; margin-bottom: 15px; font-size: 0.95em; }
.filter-group { margin-bottom: 15px; }
.filter-group label { display: block; margin-bottom: 5px; font-size: 0.85em; color: #888; }
.filter-group select, .filter-group input { width: 100%; padding: 8px; background: #222; border: 1px solid #333; color: #fff; border-radius: 5px; }

.status-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chip { padding: 5px 12px; border-radius: 15px; font-size: 0.8em; cursor: pointer; border: 1px solid transparent; transition: all 0.3s; }
.status-chip.active { border-color: #fff; }
.status-chip.pending { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.status-chip.processing { background: rgba(74, 158, 255, 0.3); color: #4a9eff; }
.status-chip.review { background: rgba(156, 39, 176, 0.3); color: #ce93d8; }
.status-chip.completed { background: rgba(0, 200, 83, 0.3); color: #00c853; }
.status-chip.rejected { background: rgba(255, 82, 82, 0.3); color: #ff5252; }

.workflow-board { display: flex; flex-direction: column; gap: 20px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 10px; }
.search-bar input { flex: 1; padding: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid #333; color: #fff; border-radius: 8px; font-size: 1em; }
.search-bar button { padding: 12px 20px; background: #4a9eff; border: none; color: #000; border-radius: 8px; cursor: pointer; font-weight: bold; }

.view-toggle { display: flex; gap: 10px; }
.view-btn { padding: 8px 16px; background: rgba(0, 0, 0, 0.4); border: 1px solid #333; color: #888; border-radius: 5px; cursor: pointer; }
.view-btn.active { background: #4a9eff; color: #000; border-color: #4a9eff; }

.kanban-view { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.kanban-view.hidden { display: none; }
.kanban-column { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 15px; min-height: 500px; }
.column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid; }
.column-header.pending { border-color: #ffc107; }
.column-header.processing { border-color: #4a9eff; }
.column-header.review { border-color: #ce93d8; }
.column-header.completed { border-color: #00c853; }
.column-header.rejected { border-color: #ff5252; }
.column-header h3 { font-size: 0.95em; }
.column-header .count { background: rgba(255, 255, 255, 0.1); padding: 3px 10px; border-radius: 10px; font-size: 0.85em; }

.document-card { background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 12px; margin-bottom: 10px; border-left: 3px solid; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.document-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.document-card.deed { border-color: #4caf50; }
.document-card.court { border-color: #2196f3; }
.document-card.will { border-color: #9c27b0; }
.document-card.criminal { border-color: #ff5722; }
.document-card.civil { border-color: #00bcd4; }
.document-card.tax { border-color: #ffc107; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.card-id { font-size: 0.75em; color: #888; }
.card-priority { padding: 2px 8px; border-radius: 8px; font-size: 0.7em; font-weight: bold; }
.card-priority.high { background: rgba(255, 82, 82, 0.3); color: #ff5252; }
.card-priority.medium { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.card-priority.low { background: rgba(0, 200, 83, 0.3); color: #00c853; }
.card-title { font-weight: bold; margin-bottom: 5px; font-size: 0.9em; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 0.75em; color: #888; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-office { margin-top: 8px; padding: 5px 10px; background: rgba(74, 158, 255, 0.2); border-radius: 5px; font-size: 0.8em; color: #4a9eff; }

.timeline-view { display: none; }
.timeline-view.active { display: block; }
.timeline-item { display: flex; gap: 20px; padding: 15px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; margin-bottom: 10px; align-items: center; cursor: pointer; }
.timeline-date { min-width: 100px; text-align: center; }
.timeline-date .day { font-size: 1.5em; font-weight: bold; color: #4a9eff; }
.timeline-date .month { font-size: 0.8em; color: #888; }
.timeline-content { flex: 1; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; }

.detail-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); z-index: 1000; justify-content: center; align-items: center; }
.detail-modal.active { display: flex; }
.modal-content { background: #1a1a2e; border-radius: 15px; padding: 30px; max-width: 700px; width: 90%; max-height: 80vh; overflow-y: auto; border: 1px solid #333; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #333; }
.modal-header h2 { color: #4a9eff; }
.close-btn { background: none; border: none; color: #888; font-size: 1.5em; cursor: pointer; }
.modal-section { margin-bottom: 20px; }
.modal-section h4 { color: #888; font-size: 0.85em; margin-bottom: 8px; text-transform: uppercase; }

.workflow-steps { display: flex; flex-direction: column; gap: 10px; }
.workflow-step { display: flex; align-items: center; gap: 15px; padding: 12px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; }
.step-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2em; }
.step-icon.complete { background: rgba(0, 200, 83, 0.3); }
.step-icon.current { background: rgba(74, 158, 255, 0.3); }
.step-icon.pending { background: rgba(255, 255, 255, 0.1); }
.step-info { flex: 1; }
.step-info .title { font-weight: bold; margin-bottom: 3px; }
.step-info .detail { font-size: 0.85em; color: #888; }
.step-time { text-align: right; font-size: 0.85em; color: #888; }

.action-btns { display: flex; gap: 10px; margin-top: 20px; }
.action-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; transition: opacity 0.3s; }
.action-btn:hover { opacity: 0.8; }
.action-btn.primary { background: #4a9eff; color: #000; }
.action-btn.secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.action-btn.danger { background: rgba(255, 82, 82, 0.3); color: #ff5252; }

.quick-action-btn { width: 100%; padding: 10px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid #333; color: #fff; border-radius: 5px; cursor: pointer; text-align: left; transition: background 0.3s; }
.quick-action-btn:hover { background: rgba(74, 158, 255, 0.2); }

.sla-warning { background: rgba(255, 193, 7, 0.2); border: 1px solid #ffc107; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.sla-warning h4 { color: #ffc107; margin-bottom: 10px; }
.sla-warning ul { list-style: none; }
.sla-warning li { padding: 5px 0; font-size: 0.9em; }

@media (max-width: 1200px) { .kanban-view { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .main-container { grid-template-columns: 1fr; } .kanban-view { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kanban-view { grid-template-columns: 1fr; } }
