/* Professional Ticketing System - Design System */

/* CSS Variables */
:root {
    /* Sidebar colors */
    --sidebar-bg: #1a1d21;
    --sidebar-hover: #2c2f33;
    --sidebar-border: #33373d;
    --sidebar-text: #9ca3af;
    --sidebar-text-active: #ffffff;
    --sidebar-width: 260px;

    /* Content colors */
    --content-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Primary accent (Blue) */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-text: #1e40af;

    /* Text colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Status colors */
    --status-open: #0ea5e9;
    --status-open-bg: #e0f2fe;
    --status-progress: #f59e0b;
    --status-progress-bg: #fef3c7;
    --status-review: #8b5cf6;
    --status-review-bg: #ede9fe;
    --status-closed: #10b981;
    --status-closed-bg: #d1fae5;

    /* Priority colors */
    --priority-critical: #ef4444;
    --priority-critical-bg: #fee2e2;
    --priority-high: #f97316;
    --priority-high-bg: #ffedd5;
    --priority-medium: #3b82f6;
    --priority-medium-bg: #dbeafe;
    --priority-low: #6b7280;
    --priority-low-bg: #f3f4f6;

    /* Other */
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --success-bg: #d1fae5;
    --error: #ef4444;
    --error-bg: #fee2e2;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--content-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--content-bg);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--sidebar-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--sidebar-text-active);
    letter-spacing: -0.3px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-text-active);
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-menu:hover {
    background-color: var(--sidebar-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    color: var(--sidebar-text-active);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    display: block;
    color: var(--sidebar-text);
    font-size: 11px;
}

.logout-btn {
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--sidebar-text);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--sidebar-bg);
    padding: 0 16px;
    align-items: center;
    gap: 16px;
    z-index: 999;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background-color: var(--sidebar-hover);
}

.mobile-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    background: transparent;
}

.card-header h2,
.card-header h3,
.card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 16px 0;
    font-weight: 600;
    color: var(--text-primary);
}

h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.btn-outline-secondary:hover {
    background-color: var(--content-bg);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-outline-danger {
    background-color: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Forms */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.form-select-sm {
    padding: 8px 36px 8px 12px;
    font-size: 13px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.mb-3 {
    margin-bottom: 20px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.card-body .table-responsive {
    margin: -24px;
    padding: 0 24px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background-color: var(--content-bg);
    border-bottom: 1px solid var(--card-border);
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--content-bg);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.table a:hover {
    color: var(--primary-hover);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    white-space: nowrap;
}

.badge.bg-info {
    background-color: var(--status-open-bg) !important;
    color: var(--status-open);
}

.badge.bg-warning {
    background-color: var(--status-progress-bg) !important;
    color: var(--status-progress);
}

.badge.bg-success {
    background-color: var(--status-closed-bg) !important;
    color: var(--status-closed);
}

.badge.bg-purple {
    background-color: var(--status-review-bg) !important;
    color: var(--status-review);
}

.badge.bg-danger {
    background-color: var(--priority-critical-bg) !important;
    color: var(--priority-critical);
}

.badge.bg-orange {
    background-color: var(--priority-high-bg) !important;
    color: var(--priority-high);
}

.badge.bg-primary {
    background-color: var(--priority-medium-bg) !important;
    color: var(--priority-medium);
}

.badge.bg-secondary {
    background-color: var(--priority-low-bg) !important;
    color: var(--priority-low);
}

.badge.fs-6 {
    font-size: 13px;
    padding: 6px 12px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: var(--success-bg);
    color: #065f46;
}

.alert-error {
    background-color: var(--error-bg);
    color: #991b1b;
}

.alert i {
    font-size: 18px;
}

.alert span {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin-right: 8px;
    color: var(--text-muted);
}

/* Grid & Layout Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -12px;
}

.row > * {
    padding: 12px;
}

.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }

.g-2 { margin: -8px; }
.g-2 > * { padding: 8px; }
.g-3 { margin: -12px; }
.g-3 > * { padding: 12px; }

/* Flex Utilities */
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.p-3 { padding: 16px; }

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-decoration-none { text-decoration: none; }
.fst-italic { font-style: italic; }
.fw-bold { font-weight: 600; }
.small { font-size: 13px; }
.display-1 { font-size: 64px; }

/* Background Utilities */
.bg-light {
    background-color: var(--content-bg);
    border-radius: var(--border-radius);
}

.rounded {
    border-radius: var(--border-radius);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Project Cards */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.project-card h5 {
    margin-bottom: 8px;
}

.project-card h5 a {
    color: var(--text-primary);
    text-decoration: none;
}

.project-card h5 a:hover {
    color: var(--primary);
}

.project-card .text-muted {
    flex: 1;
    margin-bottom: 16px;
}

.project-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
    margin-top: auto;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 32px;
    text-align: center;
    color: white;
}

.login-header .logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
    font-size: 28px;
}

.login-header h1 {
    color: white;
    font-size: 24px;
    margin: 0;
}

.login-body {
    padding: 32px;
}

.login-body .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-overlay {
        display: none;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding-top: 56px;
    }

    .content-wrapper {
        padding: 24px 16px;
    }
}

@media (max-width: 767px) {
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row.g-md-3 {
        margin: -8px;
    }

    .row.g-md-3 > * {
        padding: 8px;
    }

    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }

    .card-header {
        padding: 16px;
    }

    .card-header.d-flex {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }

    .card-body {
        padding: 16px;
    }

    .card-body .table-responsive {
        margin: -16px;
        padding: 0 16px;
    }

    .table th,
    .table td {
        padding: 12px 8px;
    }

    .d-none.d-md-table-cell,
    .d-none.d-lg-table-cell {
        display: none !important;
    }

    h1 {
        font-size: 20px;
    }

    .btn-sm {
        padding: 8px 10px;
    }
}

@media (max-width: 575px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-wrapper {
        padding: 16px 12px;
    }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
    }

    .btn-sm {
        min-height: 40px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
    }

    .nav-item {
        min-height: 44px;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-header,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    flex: 1;
    min-width: 240px;
    max-width: 280px;
    background-color: var(--content-bg);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
}

.kanban-column-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.kanban-column-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.kanban-column-count {
    background-color: var(--card-border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.kanban-column-body {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    transition: background-color 0.2s ease;
}

.kanban-column-body.drag-over {
    background-color: var(--primary-light);
}

.kanban-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: grab;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.kanban-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.kanban-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.kanban-card-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.kanban-card-title-wrapper {
    flex: 1;
    margin-bottom: 12px;
}

.kanban-card-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.5;
    padding: 12px;
    background-color: var(--content-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.kanban-card-title:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.kanban-card-project,
.kanban-card-assignee {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Kanban responsive */
@media (max-width: 1023px) {
    .kanban-board {
        padding-bottom: 24px;
    }

    .kanban-column {
        min-width: 260px;
    }
}

@media (max-width: 767px) {
    .kanban-board {
        flex-direction: column;
    }

    .kanban-column {
        max-width: 100%;
        min-width: 100%;
    }

    .kanban-column-body {
        min-height: 100px;
    }
}

/* Inline dropdown (Kanban inline editing) */
.inline-dropdown {
    position: fixed;
    z-index: 1100;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px 0;
}

.inline-dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.inline-dropdown-option:hover {
    background-color: var(--primary-light);
}

.inline-dropdown-option.active {
    background-color: var(--primary-light);
    font-weight: 500;
}

.kanban-priority-badge {
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.kanban-priority-badge:hover {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.kanban-assignee-trigger {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.kanban-assignee-trigger:hover {
    background-color: var(--primary-light);
    color: var(--text-primary);
}

/* Attachments - Gallery (ticket detail view) */
.attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.attachment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.attachment-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-light);
}

.attachment-card-image {
    display: block;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: var(--content-bg);
}

.attachment-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.attachment-card:hover .attachment-card-image img {
    transform: scale(1.05);
}

.attachment-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attachment-card-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-card-size {
    font-size: 11px;
    color: var(--text-muted);
}

.attachment-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.attachment-card:hover .attachment-card-delete {
    opacity: 1;
}

.attachment-card-delete .btn {
    padding: 4px 8px;
    font-size: 12px;
    background: var(--card-bg);
}

/* Attachments - List (edit form view) */
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--content-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.attachment-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.attachment-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attachment-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-item-size {
    font-size: 11px;
    color: var(--text-muted);
}

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--card-border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition);
    background: var(--card-bg);
    min-height: 120px;
}

.drop-zone-active,
.drop-zone:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-zone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.drop-zone-prompt i {
    font-size: 32px;
    color: var(--text-muted);
}

.drop-zone-prompt a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.drop-zone-prompt a:hover {
    text-decoration: underline;
}

.drop-zone-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drop-zone-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--content-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.drop-zone-file img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.drop-zone-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drop-zone-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-zone-file-size {
    font-size: 11px;
    color: var(--text-muted);
}

/* Attachment responsive */
@media (max-width: 575px) {
    .attachment-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .attachment-card-image {
        height: 110px;
    }

    .attachment-card-delete {
        opacity: 1;
    }

    .drop-zone {
        padding: 16px;
    }
}
