* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #22272b;
    color: #b6c2cf;
    line-height: 1.42857143;
    font-size: 14px;
}

/* List View */
.list-container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    background: #22272b;
    min-height: 100vh;
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 0;
}
.header-bar h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #b6c2cf;
}
.header-info { display: flex; align-items: center; gap: 12px; }
.last-update { color: #8c9bab; font-size: 12px; }
.refresh-btn {
    background: #579dff;
    color: #1d2125;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    height: 32px;
    transition: background 0.1s;
}
.refresh-btn:hover { background: #85b8ff; }
.refresh-btn:disabled { background: #38414a; color: #8c9bab; cursor: not-allowed; }

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 0;
    flex-wrap: wrap;
}
.search-input {
    background: #2c333a;
    border: 1px solid #38414a;
    color: #b6c2cf;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
.search-input:focus {
    outline: none;
    border-color: #579dff;
}
.filter-dropdown {
    background: #2c333a;
    border: 1px solid #38414a;
    color: #b6c2cf;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
}
.filter-dropdown:hover {
    background: #38414a;
}
.work-items-count {
    color: #8c9bab;
    font-size: 13px;
    margin-bottom: 8px;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
    background: #22272b;
}
.tickets-table thead {
    background: #2c333a;
    border-bottom: 2px solid #38414a;
}
.tickets-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #8c9bab;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.tickets-table th.sortable {
    cursor: pointer;
    user-select: none;
}
.tickets-table th.sortable:hover {
    background: #38414a;
}
.tickets-table tbody tr {
    border-bottom: 1px solid #2c333a;
    cursor: pointer;
    transition: background 0.1s;
}
.tickets-table tbody tr:hover {
    background: #2c333a;
}
.tickets-table td {
    padding: 12px;
    font-size: 14px;
    color: #b6c2cf;
    vertical-align: middle;
}
.tickets-table .col-checkbox {
    width: 40px;
    text-align: center;
}
.tickets-table .col-icon {
    width: 30px;
    text-align: center;
}
.tickets-table .col-key {
    width: 120px;
}
.tickets-table .col-priority {
    width: 40px;
    text-align: center;
}
.tickets-table .col-summary {
    min-width: 200px;
    max-width: 300px;
}
.tickets-table .col-org {
    width: 150px;
}
.tickets-table .col-reporter {
    width: 150px;
}
.tickets-table .col-assignee {
    width: 150px;
}
.tickets-table .col-status {
    width: 180px;
}
.tickets-table .col-labels {
    width: 100px;
}
.tickets-table .col-due {
    width: 100px;
}

.ticket-key {
    font-weight: 600;
    color: #579dff;
    font-size: 13px;
}
.ticket-summary {
    color: #b6c2cf;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.status-badge-list {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.status-badge-list.resolved {
    background: #00875a;
    color: #ffffff;
}
.status-badge-list.in-progress {
    background: #0052cc;
    color: #ffffff;
}
.status-badge-list.pending {
    background: #ffab00;
    color: #ffffff;
}
.status-badge-list.waiting {
    background: #38414a;
    color: #9fadbc;
}
.status-badge-list.waiting-migrated {
    background: #6b778c;
    color: #ffffff;
}
.status-badge-list.canceled {
    background: #de350b;
    color: #ffffff;
}
.status-badge-list.default {
    background: #38414a;
    color: #9fadbc;
}
.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #579dff;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}
.assignee-name {
    color: #b6c2cf;
    font-size: 14px;
}
.priority-icon {
    font-size: 16px;
    color: #8c9bab;
}

/* Detail View */
#detail-view {
    background: #22272b;
    min-height: 100vh;
}

.detail-container {
    background: #22272b;
}

.detail-top-bar {
    background: #2c333a;
    border-bottom: 1px solid #38414a;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.back-btn {
    background: transparent;
    color: #9fadbc;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}
.back-btn:hover {
    background: #38414a;
    color: #b6c2cf;
}

.detail-main {
    max-width: 80%;
    margin: 0 auto;
    padding: 0;
}

.detail-header {
    padding: 32px 40px 24px 40px;
    background: #22272b;
}

.breadcrumb {
    font-size: 12px;
    color: #8c9bab;
    margin-bottom: 16px;
}
.breadcrumb a {
    color: #579dff;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-title-row {
    margin-bottom: 20px;
}
.detail-title-row h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #b6c2cf;
    line-height: 1.2;
}

.detail-toolbar {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    padding-bottom: 20px;
}
.toolbar-btn {
    background: transparent;
    border: none;
    color: #8c9bab;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.1s;
}
.toolbar-btn:hover {
    background: #2c333a;
    color: #b6c2cf;
}

.detail-content {
    padding: 0 40px 40px 40px;
    background: #22272b;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.detail-content-main {
    min-width: 0;
}

.detail-sidebar {
    padding: 0;
    background: #22272b;
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
}
.detail-section {
    margin-bottom: 32px;
}

.detail-section-description {
    background: #2c333a;
    border: 1px solid #38414a;
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 32px;
}

.detail-section-comments {
    background: #2c333a;
    border: 1px solid #38414a;
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 32px;
}
.detail-section h3 {
    font-size: 11px;
    font-weight: 700;
    color: #9fadbc;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.detail-description {
    background: transparent;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    color: #b6c2cf;
    font-size: 14px;
    line-height: 1.71428571;
}

.detail-section-description .detail-description {
    background: transparent;
}

.comment {
    background: #22272b;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #38414a;
    border-radius: 3px;
}
.comment:last-child {
    margin-bottom: 0;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.comment-author {
    font-weight: 600;
    color: #b6c2cf;
    font-size: 14px;
}
.comment-date {
    color: #8c9bab;
    font-size: 12px;
}
.comment-body {
    margin: 0;
    white-space: pre-wrap;
    color: #b6c2cf;
    font-size: 14px;
    line-height: 1.71428571;
}

.attachments-section { margin-top: 16px; }
.attachments-section h4 {
    font-size: 11px;
    font-weight: 700;
    color: #9fadbc;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.attachment-item {
    background: #2c333a;
    padding: 10px 12px;
    border-radius: 3px;
    border: 1px solid #38414a;
}
.attachment-item a {
    color: #579dff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.attachment-item a:hover {
    color: #85b8ff;
}
.attachment-icon { font-size: 16px; }
.attachment-preview {
    max-width: 100%;
    max-height: 400px;
    margin-top: 12px;
    border-radius: 3px;
    border: 1px solid #38414a;
    cursor: pointer;
}

/* Details Section (sidebar) */
.detail-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #8c9bab;
    letter-spacing: 0.3px;
}

.detail-meta-value {
    font-size: 14px;
    color: #b6c2cf;
}

.status-badge {
    background: #38414a;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #9fadbc;
    display: inline-block;
    text-transform: capitalize;
}

/* Detail view için status badge renklendirmesi */
.status-badge.status-badge-list.resolved {
    background: #00875a;
    color: #ffffff;
}
.status-badge.status-badge-list.in-progress {
    background: #0052cc;
    color: #ffffff;
}
.status-badge.status-badge-list.pending {
    background: #ffab00;
    color: #ffffff;
}
.status-badge.status-badge-list.waiting {
    background: #38414a;
    color: #9fadbc;
}
.status-badge.status-badge-list.waiting-migrated {
    background: #6b778c;
    color: #ffffff;
}
.status-badge.status-badge-list.canceled {
    background: #de350b;
    color: #ffffff;
}
.status-badge.status-badge-list.default {
    background: #38414a;
    color: #9fadbc;
}

/* Text formatting */
.detail-description p,
.comment-body p {
    margin: 0 0 12px 0;
}

.detail-description p:last-child,
.comment-body p:last-child {
    margin-bottom: 0;
}

.detail-description strong,
.comment-body strong {
    color: #b6c2cf;
    font-weight: 600;
}

.detail-description a,
.comment-body a {
    color: #579dff;
    text-decoration: none;
}

.detail-description a:hover,
.comment-body a:hover {
    text-decoration: underline;
}

.detail-description code,
.comment-body code {
    background: #2c333a;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 12px;
    color: #f87462;
}

.detail-description ul,
.detail-description ol,
.comment-body ul,
.comment-body ol {
    margin: 8px 0;
    padding-left: 24px;
}

.detail-description li,
.comment-body li {
    margin: 4px 0;
}

.hidden { display: none; }

