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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
	background: #f5f5f5;
	color: #333;
}

.header {
	background: white;
	padding: 20px 30px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 100;
}

.header h1 {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
}

.header-actions {
	display: flex;
	gap: 12px;
}

.add-task-btn {
	background: #3498db;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.add-task-btn:hover {
	background: #2980b9;
}

.btn-secondary {
	background: #95a5a6;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-secondary:hover {
	background: #7f8c8d;
}

.board-container {
	display: flex;
	gap: 20px;
	padding: 30px;
	overflow-x: auto;
	height: calc(100vh - 84px);
}

.column {
	flex: 1;
	min-width: 280px;
	background: #ecf0f1;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	max-height: 100%;
}

.column-header {
	padding: 15px 20px;
	background: white;
	border-radius: 8px 8px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 2px solid #e0e0e0;
}

.column-header h2 {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
}

.count {
	background: #95a5a6;
	color: white;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.column-content {
	padding: 15px;
	overflow-y: auto;
	flex: 1;
	min-height: 100px;
}

.task-card {
	background: white;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	cursor: move;
	transition: box-shadow 0.2s, transform 0.2s;
	border-left: 4px solid #95a5a6;
}

.task-card:hover {
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

.task-card.dragging {
	opacity: 0.5;
	transform: rotate(5deg);
}

.task-card[data-severity="low"] {
	border-left-color: #95a5a6;
}

.task-card[data-severity="medium"] {
	border-left-color: #f39c12;
}

.task-card[data-severity="high"] {
	border-left-color: #e67e22;
}

.task-card[data-severity="critical"] {
	border-left-color: #e74c3c;
}

.task-title {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

.task-description {
	font-size: 13px;
	color: #7f8c8d;
	margin-bottom: 10px;
	line-height: 1.4;
	max-height: 60px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.task-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}

.severity-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 10px;
}

.severity-low {
	background: #ecf0f1;
	color: #7f8c8d;
}

.severity-medium {
	background: #fef5e7;
	color: #f39c12;
}

.severity-high {
	background: #fef5e7;
	color: #e67e22;
}

.severity-critical {
	background: #fadbd8;
	color: #e74c3c;
}

.task-screenshot {
	margin-top: 10px;
}

.task-screenshot img {
	max-width: 100%;
	border-radius: 4px;
	cursor: pointer;
}

.btn-delete {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}

.btn-delete:hover {
	background: #c0392b;
}

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

.modal-content {
	background-color: white;
	margin: 5% auto;
	padding: 30px;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
}

.close:hover,
.close:focus {
	color: #000;
}

.modal-content h2 {
	margin-bottom: 20px;
	color: #2c3e50;
	font-size: 22px;
}

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

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #2c3e50;
	font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.form-group input[type="file"] {
	border: 1px dashed #ddd;
	padding: 10px;
	width: 100%;
	border-radius: 4px;
}

.form-group textarea {
	resize: vertical;
}

#screenshotPreview {
	margin-top: 10px;
}

#screenshotPreview img {
	max-width: 200px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.form-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 30px;
}

.btn-cancel,
.btn-submit {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-cancel {
	background: #ecf0f1;
	color: #7f8c8d;
}

.btn-cancel:hover {
	background: #bdc3c7;
}

.btn-submit {
	background: #3498db;
	color: white;
}

.btn-submit:hover {
	background: #2980b9;
}

/* Task Detail Modal */
#taskDetail {
	line-height: 1.6;
}

#taskDetail h3 {
	margin-bottom: 15px;
	color: #2c3e50;
}

#taskDetail p {
	margin-bottom: 10px;
	color: #555;
}

#taskDetail img {
	max-width: 100%;
	margin-top: 15px;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.task-detail-actions {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
	display: flex;
	justify-content: flex-end;
}

.column-content.drag-over {
	background: #d5dbdb;
}

/* Scrollbar Styling */
.column-content::-webkit-scrollbar {
	width: 8px;
}

.column-content::-webkit-scrollbar-track {
	background: transparent;
}

.column-content::-webkit-scrollbar-thumb {
	background: #bdc3c7;
	border-radius: 4px;
}

.column-content::-webkit-scrollbar-thumb:hover {
	background: #95a5a6;
}

/* Archive View */
.archive-view {
	padding: 30px;
	min-height: calc(100vh - 84px);
	background: #f5f5f5;
}

.archive-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
}

.archive-header h2 {
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
}

.btn-back {
	background: #ecf0f1;
	color: #2c3e50;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-back:hover {
	background: #bdc3c7;
}

.archived-tasks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	max-width: 100%;
}

.archived-task-card {
	background: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-left: 4px solid #95a5a6;
	transition: box-shadow 0.2s;
	cursor: pointer;
}

.archived-task-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.archived-task-card[data-severity="low"] {
	border-left-color: #95a5a6;
}

.archived-task-card[data-severity="medium"] {
	border-left-color: #f39c12;
}

.archived-task-card[data-severity="high"] {
	border-left-color: #e67e22;
}

.archived-task-card[data-severity="critical"] {
	border-left-color: #e74c3c;
}

.btn-archive {
	background: #f39c12;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
	margin-right: 10px;
}

.btn-archive:hover {
	background: #e67e22;
}

.btn-unarchive {
	background: #27ae60;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
	margin-right: 10px;
}

.btn-unarchive:hover {
	background: #229954;
}

/* PDF Attachment Styles */
.pdf-preview {
	padding: 15px;
	background: #ecf0f1;
	border-radius: 4px;
	color: #2c3e50;
	font-weight: 600;
	text-align: center;
	font-size: 14px;
}

.pdf-attachment {
	display: block;
	padding: 10px 15px;
	background: #ecf0f1;
	border-radius: 4px;
	color: #2c3e50;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	transition: background 0.2s;
	font-size: 13px;
}

.pdf-attachment:hover {
	background: #bdc3c7;
}

.pdf-attachment-detail {
	margin-top: 15px;
}

.pdf-link {
	display: inline-block;
	padding: 10px 20px;
	background: #3498db;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	margin-bottom: 15px;
	transition: background 0.2s;
}

.pdf-link:hover {
	background: #2980b9;
}

.pdf-viewer {
	width: 100%;
	height: 500px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-top: 10px;
}

/* Icon Button */
.btn-icon {
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: background 0.2s;
}

.btn-icon:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* Dark Mode Styles */
body.dark-mode {
	background: #1a1a1a;
	color: #e0e0e0;
}

body.dark-mode .header {
	background: #2d2d2d;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .header h1 {
	color: #e0e0e0;
}

body.dark-mode .btn-icon:hover {
	background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .board-container {
	background: #1a1a1a;
}

body.dark-mode .column {
	background: #252525;
}

body.dark-mode .column-header {
	background: #2d2d2d;
	border-bottom: 2px solid #3a3a3a;
}

body.dark-mode .column-header h2 {
	color: #e0e0e0;
}

body.dark-mode .count {
	background: #4a4a4a;
	color: #e0e0e0;
}

body.dark-mode .task-card,
body.dark-mode .archived-task-card {
	background: #2d2d2d;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .task-card:hover,
body.dark-mode .archived-task-card:hover {
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode .task-title {
	color: #e0e0e0;
}

body.dark-mode .task-description {
	color: #a0a0a0;
}

body.dark-mode .column-content.drag-over {
	background: #3a3a3a;
}

body.dark-mode .column-content::-webkit-scrollbar-thumb {
	background: #4a4a4a;
}

body.dark-mode .column-content::-webkit-scrollbar-thumb:hover {
	background: #5a5a5a;
}

body.dark-mode .modal {
	background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .modal-content {
	background-color: #2d2d2d;
	color: #e0e0e0;
}

body.dark-mode .modal-content h2,
body.dark-mode .modal-content h3,
body.dark-mode #taskDetail h3 {
	color: #ffffff;
}

body.dark-mode .close {
	color: #a0a0a0;
}

body.dark-mode .close:hover,
body.dark-mode .close:focus {
	color: #e0e0e0;
}

body.dark-mode .form-group label {
	color: #e0e0e0;
}

body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="password"],
body.dark-mode .form-group input[type="email"],
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
	background: #1a1a1a;
	border: 1px solid #4a4a4a;
	color: #e0e0e0;
}

body.dark-mode .form-group input[type="file"] {
	background: #1a1a1a;
	border: 1px dashed #4a4a4a;
	color: #e0e0e0;
}

body.dark-mode #screenshotPreview img {
	border: 1px solid #4a4a4a;
}

body.dark-mode .btn-cancel {
	background: #3a3a3a;
	color: #e0e0e0;
}

body.dark-mode .btn-cancel:hover {
	background: #4a4a4a;
}

body.dark-mode #taskDetail p {
	color: #a0a0a0;
}

body.dark-mode #taskDetail img {
	border: 1px solid #4a4a4a;
}

body.dark-mode .task-detail-actions {
	border-top: 1px solid #3a3a3a;
}

body.dark-mode .archive-view {
	background: #1a1a1a;
}

body.dark-mode .archive-header h2 {
	color: #e0e0e0;
}

body.dark-mode .btn-back {
	background: #3a3a3a;
	color: #e0e0e0;
}

body.dark-mode .btn-back:hover {
	background: #4a4a4a;
}

body.dark-mode .pdf-preview,
body.dark-mode .pdf-attachment {
	background: #3a3a3a;
	color: #e0e0e0;
}

body.dark-mode .pdf-attachment:hover {
	background: #4a4a4a;
}

body.dark-mode .pdf-viewer {
	border: 1px solid #4a4a4a;
}

/* Comments Section */
.comments-section {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
}

.comments-section h4 {
	margin-bottom: 15px;
	color: #2c3e50;
	font-size: 18px;
}

#commentsList {
	margin-bottom: 20px;
	max-height: 300px;
	overflow-y: auto;
}

.comment {
	background: #f8f9fa;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 10px;
	border-left: 3px solid #3498db;
}

.comment-text {
	color: #2c3e50;
	margin-bottom: 8px;
	line-height: 1.5;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.comment-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #7f8c8d;
}

.comment-date {
	font-style: italic;
}

.btn-delete-comment {
	background: transparent;
	color: #e74c3c;
	border: none;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	transition: background 0.2s;
}

.btn-delete-comment:hover {
	background: #fadbd8;
}

.no-comments {
	text-align: center;
	color: #95a5a6;
	font-style: italic;
	padding: 20px;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}

.comment-form .btn-submit {
	align-self: flex-end;
}

/* Dark mode comments */
body.dark-mode .comments-section {
	border-top: 1px solid #3a3a3a;
}

body.dark-mode .comments-section h4 {
	color: #e0e0e0;
}

body.dark-mode .comment {
	background: #1a1a1a;
	border-left-color: #3498db;
}

body.dark-mode .comment-text {
	color: #e0e0e0;
}

body.dark-mode .comment-meta {
	color: #a0a0a0;
}

body.dark-mode .btn-delete-comment {
	color: #e74c3c;
}

body.dark-mode .btn-delete-comment:hover {
	background: rgba(231, 76, 60, 0.2);
}

body.dark-mode .no-comments {
	color: #7f8c8d;
}

body.dark-mode .comment-form textarea {
	background: #1a1a1a;
	border: 1px solid #4a4a4a;
	color: #e0e0e0;
}

/* Attachment Section */
.attachment-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ecf0f1;
}

.attachment-section h4 {
	margin-bottom: 15px;
	color: #2c3e50;
	font-size: 18px;
}

.current-attachment {
	background: #f8f9fa;
	padding: 12px;
	border-radius: 6px;
	margin-bottom: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.current-attachment p {
	margin: 0;
	color: #2c3e50;
	font-size: 14px;
}

.btn-remove-attachment {
	background: #e74c3c;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
}

.btn-remove-attachment:hover {
	background: #c0392b;
}

.no-attachment {
	color: #95a5a6;
	font-style: italic;
	margin-bottom: 15px;
}

.add-attachment-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.add-attachment-form .btn-secondary {
	align-self: flex-start;
}

#attachmentUploadPreview {
	margin-top: 10px;
}

/* Dark mode attachment section */
body.dark-mode .attachment-section {
	border-top: 1px solid #3a3a3a;
}

body.dark-mode .attachment-section h4 {
	color: #e0e0e0;
}

body.dark-mode .current-attachment {
	background: #1a1a1a;
}

body.dark-mode .current-attachment p {
	color: #e0e0e0;
}

body.dark-mode .no-attachment {
	color: #7f8c8d;
}

/* Current user label */
.current-user-label {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
	background: #ecf0f1;
	padding: 6px 12px;
	border-radius: 12px;
}

body.dark-mode .current-user-label {
	background: #3a3a3a;
	color: #e0e0e0;
}

/* Login page */
.login-body {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	background: #f5f5f5;
}

body.dark-mode.login-body {
	background: #1a1a1a;
}

.login-card {
	background: white;
	padding: 36px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 380px;
}

body.dark-mode .login-card {
	background: #2d2d2d;
	color: #e0e0e0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.login-card h1 {
	font-size: 22px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 8px;
}

body.dark-mode .login-card h1 {
	color: #ffffff;
}

.login-subtitle {
	color: #7f8c8d;
	font-size: 14px;
	margin-bottom: 24px;
}

body.dark-mode .login-subtitle {
	color: #a0a0a0;
}

.login-error {
	background: #fadbd8;
	color: #c0392b;
	padding: 10px;
	border-radius: 4px;
	font-size: 13px;
	margin-bottom: 12px;
}

body.dark-mode .login-error {
	background: rgba(231, 76, 60, 0.2);
	color: #e74c3c;
}

.btn-full {
	width: 100%;
}

/* Assignee chip on cards */
.assignee-chip {
	background: #d6eaf8;
	color: #21618c;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 10px;
}

body.dark-mode .assignee-chip {
	background: rgba(52, 152, 219, 0.25);
	color: #5dade2;
}

/* Client line on cards */
.task-client {
	font-size: 12px;
	color: #2980b9;
	font-weight: 600;
	margin-bottom: 6px;
}

body.dark-mode .task-client {
	color: #5dade2;
}

/* "Awaiting you" flag */
.task-card.awaiting-me {
	border-left-color: #f39c12 !important;
	background: #fffaf0;
}

body.dark-mode .task-card.awaiting-me {
	background: #3a2f1d;
}

.awaiting-flag {
	margin-top: 8px;
	font-size: 11px;
	font-weight: 600;
	color: #b9770e;
	background: #fef5e7;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
}

body.dark-mode .awaiting-flag {
	color: #f5b041;
	background: rgba(243, 156, 18, 0.15);
}

/* Inline edit rows inside the detail modal */
.inline-field-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.inline-field-row label {
	min-width: 110px;
	color: #2c3e50;
	font-size: 14px;
}

body.dark-mode .inline-field-row label {
	color: #e0e0e0;
}

.inline-field-row select,
.inline-field-row input[type="text"] {
	flex: 1;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

body.dark-mode .inline-field-row select,
body.dark-mode .inline-field-row input[type="text"] {
	background: #1a1a1a;
	border: 1px solid #4a4a4a;
	color: #e0e0e0;
}

/* Comment author */
.comment-author {
	font-size: 12px;
	color: #2c3e50;
	margin-bottom: 4px;
}

body.dark-mode .comment-author {
	color: #e0e0e0;
}

/* Editable title in detail modal */
.detail-title-input {
	width: 100%;
	font-size: 22px;
	font-weight: 600;
	color: #2c3e50;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 6px 8px;
	margin-bottom: 15px;
	font-family: inherit;
}

.detail-title-input:hover {
	border-color: #ddd;
}

.detail-title-input:focus {
	outline: none;
	border-color: #3498db;
	background: white;
}

body.dark-mode .detail-title-input {
	color: #ffffff;
}

body.dark-mode .detail-title-input:hover {
	border-color: #4a4a4a;
}

body.dark-mode .detail-title-input:focus {
	background: #1a1a1a;
	border-color: #3498db;
}

/* Stacked inline field (label on top of input) */
.inline-field-row-stacked {
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.inline-field-row-stacked label {
	min-width: 0;
}

.detail-description-input {
	width: 100%;
	min-height: 240px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	line-height: 1.5;
}

body.dark-mode .detail-description-input {
	background: #1a1a1a;
	border: 1px solid #4a4a4a;
	color: #e0e0e0;
}
