/* Ultra Minimal & Clean Panel Design - Like Notion/Linear */

/* Base panel - super clean */
.tk-panel-details {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #E5E7EB;
    transition: all 0.15s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tk-panel-details:hover {
    border-color: #D1D5DB;
    background: #FAFAFA;
}

/* Hide default icons */
.tk-panel-details > i:first-child {
    display: none !important;
}

/* Ultra compact headers inline with content */
.tk-panel-details h3 {
    font-size: 14px !important;
    font-weight: 500;
    margin: 0;
    color: #6B7280;
    min-width: 70px;
    padding-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Content area - same line as header */
.tk-panel-details > div {
    font-size: 15px;
    color: #111827;
    line-height: 1.5;
    flex: 1;
    padding-top: 2px;
}

/* Notes Panel */
.tk-panel-notes {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
}

.tk-panel-notes h3::before {
    content: "📝";
    font-size: 11px;
}

.tk-panel-notes h3 {
    color: #6B7280;
}

.tk-panel-notes > div {
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Tags Panel */
.tk-panel-tags {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
}

.tk-panel-tags h3::before {
    content: "🏷";
    font-size: 11px;
}

.tk-panel-tags h3 {
    color: #6B7280;
}

/* Minimal tag pills */
.tk-panel-tags .tk-tag,
.tk-panel-tags span {
    display: inline-block;
    background: #F3F4F6;
    color: #4B5563;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 5px;
    font-weight: 400;
    border: 1px solid #E5E7EB;
}

.tk-panel-tags .tk-tag:hover {
    background: #E5E7EB;
}

/* Attachments Panel - Smaller */
.tk-panel-attachments {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    max-height: 80px;
    overflow-y: auto;
}

.tk-panel-attachments h3::before {
    content: "📎";
    font-size: 11px;
}

.tk-panel-attachments h3 {
    color: #6B7280;
    font-size: 12px !important;
}

/* Clean attachment links - Smaller */
.tk-panel-attachments .tk-list-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.tk-panel-attachments .tk-list-items a {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    color: #4B5563;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.1s ease;
    max-width: 150px;
}

.tk-panel-attachments .tk-list-items a:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.tk-panel-attachments .tk-list-items a i {
    display: none; /* Hide file icons for cleaner look */
}

/* File name only - clean */
.tk-panel-attachments .tk-list-items a::before {
    content: "";
    width: 4px;
    height: 4px;
    background: #9CA3AF;
    border-radius: 50%;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Empty states - subtle */
.tk-panel-details > div:empty::after {
    color: #D1D5DB;
    font-size: 14px;
    font-weight: 400;
}

.tk-panel-notes > div:empty::after {
    content: "—";
}

.tk-panel-tags > div:empty::after {
    content: "—";
}

.tk-panel-attachments > div:empty::after {
    content: "—";
}

/* Alternative Card Style - Comment this out if you prefer inline */
/*
.tk-panel-details {
    background: #FAFAFA;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tk-panel-details:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
*/

/* Department Panel */
.tk-panel-department h3::before {
    content: "🏢";
    font-size: 11px;
}

/* Priority Panel */
.tk-panel-priority h3::before {
    content: "⚡";
    font-size: 11px;
}

/* Status Panel */
.tk-panel-status h3::before {
    content: "●";
    font-size: 8px;
    color: #10B981;
}

/* Input fields - invisible until hover */
.tk-panel-details input[type="text"],
.tk-panel-details textarea {
    background: transparent;
    border: 1px solid transparent;
    padding: 4px 8px;
    font-size: 15px;
    color: #111827;
    width: 100%;
    transition: all 0.1s ease;
}

.tk-panel-details input[type="text"]:hover,
.tk-panel-details textarea:hover {
    background: #F9FAFB;
    border-color: #E5E7EB;
}

.tk-panel-details input[type="text"]:focus,
.tk-panel-details textarea:focus {
    outline: none;
    background: white;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Remove all unnecessary spacing */
.tk-panel-details * {
    margin: 0;
    padding: 0;
}

/* Text truncation */
.tk-panel-attachments .tk-list-items a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive - stack on small screens */
@media (max-width: 768px) {
    .tk-panel-details {
        padding: 6px;
    }
    
    .tk-panel-details h3 {
        min-width: 50px;
        font-size: 9px !important;
    }
    
    .tk-panel-details > div {
        font-size: 10px;
    }
}

/* Group panels together */
.tk-panel-group {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.tk-panel-group .tk-panel-details {
    border: none;
    border-bottom: 1px solid #F3F4F6;
    border-radius: 0;
    padding: 8px 0;
    margin-bottom: 0;
}

.tk-panel-group .tk-panel-details:last-child {
    border-bottom: none;
}

/* Alternative emoji-free version with simple dots */
.minimal-icons .tk-panel-notes h3::before {
    content: "•";
    color: #F59E0B;
}

.minimal-icons .tk-panel-tags h3::before {
    content: "•";
    color: #3B82F6;
}

.minimal-icons .tk-panel-attachments h3::before {
    content: "•";
    color: #10B981;
}

/* Super clean hover state */
.tk-panel-details {
    cursor: default;
}

.tk-panel-details:has(input:focus),
.tk-panel-details:has(textarea:focus) {
    background: #F9FAFB;
    border-color: #3B82F6;
}

/* Remove focus outlines for cleaner look */
* {
    outline: none;
}

/* Optional: Inline everything for super compact */
.super-compact .tk-panel-details {
    display: inline-flex;
    margin-right: 12px;
    margin-bottom: 4px;
}

.super-compact .tk-panel-details h3 {
    min-width: auto;
    margin-right: 6px;
}

.super-compact .tk-panel-details h3::after {
    content: ":";
    margin-left: 2px;
    color: #D1D5DB;
}