/* cards/tikets_card/style.css */
:root {
    --tikets-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --tikets-bg-hover: rgba(99, 102, 241, 0.04);
}

/* Card Specific Styles */
#tiketsCard .mini-chart {
    height: 100px;
    margin: 10px 0;
}

#tiketsCard .tikets-date-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    justify-content: space-between;
}

#tiketsCard .tikets-date-btn {
    flex: 1;
    border: none;
    padding: 6px 4px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: 'Prompt', sans-serif;
    background: transparent;
    color: #64748b;
}

#tiketsCard .tikets-date-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #1e293b;
}

#tiketsCard .tikets-date-btn.active {
    background: white;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#tiketsCard .tkt-active-row:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.05) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

/* Priority Badges */
.tkt-prio-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.tkt-prio-urgent {
    color: #ef4444;
}

.tkt-prio-high {
    color: #ea580c;
}

.tkt-prio-medium {
    color: #ca8a04;
}

.tkt-prio-low {
    color: #64748b;
}

/* Status Badges */
.tkt-status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.tkt-status-open {
    color: #dc2626;
}

.tkt-status-inprogress {
    color: #2563eb;
}

.tkt-status-resolved {
    color: #059669;
}

.tkt-status-closed {
    color: #64748b;
}

.tkt-status-reopened {
    color: #ea580c;
}

/* Modal Month Table Styles */
#tiketsModal .tikets-month-table-container {
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: white;
}

#tiketsModal .tikets-month-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Prompt', sans-serif;
    font-size: 0.74rem;
}

#tiketsModal .tikets-month-table th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #475569;
    padding: 12px 10px;
    border-bottom: 2px solid #cbd5e1;
    border-right: 1px solid #f1f5f9;
    white-space: nowrap;
}

#tiketsModal .tikets-month-table td {
    padding: 10px 10px;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    white-space: nowrap;
}

#tiketsModal .tikets-month-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

#tiketsModal .tikets-month-table tbody tr:hover {
    background-color: #f1f5f9 !important;
}

#tiketsModal .tikets-month-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
}

/* Chat Comments UI */
.tkt-comments-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.tkt-comment-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.tkt-comment-bubble.self {
    align-self: flex-end;
    background-color: #e0e7ff;
    color: #1e1b4b;
    border-bottom-right-radius: 2px;
    border: 1px solid #c7d2fe;
}

.tkt-comment-bubble.other {
    align-self: flex-start;
    background-color: #ffffff;
    color: #334155;
    border-bottom-left-radius: 2px;
    border: 1px solid #e2e8f0;
}

.tkt-comment-meta {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-weight: 600;
}

/* Custom premium detail panel */
.tkt-detail-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.tkt-form-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.tkt-form-control {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    width: 100%;
    outline: none;
    transition: all 0.2s;
}

.tkt-form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Stacked Modal Blur Effects */
#tiketsModal.modal-blurred {
    filter: blur(4px) brightness(0.9);
    transform: scale(0.985);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#tiketsModal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Searchable Dropdown Styles */
.tkt-select-wrapper {
    position: relative;
    width: 100%;
}

.tkt-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    height: 38px;
    color: #334155;
}

.tkt-select-trigger:hover {
    border-color: #6366f1;
}

.tkt-select-trigger.active {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.tkt-select-placeholder {
    color: #94a3b8 !important;
}

.tkt-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    z-index: 10010;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tkt-select-search-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    gap: 8px;
}

.tkt-select-search-container i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.tkt-select-search {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.76rem;
    width: 100%;
    color: #334155;
    padding: 4px 0;
}

.tkt-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.tkt-select-options li {
    font-size: 0.78rem;
    color: #334155;
    transition: background 0.15s;
}

.tkt-select-options li.tkt-select-group-header {
    font-weight: 700;
    color: #64748b;
    background-color: #f8fafc;
    padding: 6px 12px;
    font-size: 0.68rem;
    pointer-events: none;
    border-bottom: 1px solid #f1f5f9;
    border-top: 1px solid #f1f5f9;
}

.tkt-select-options li.tkt-select-group-header:first-child {
    border-top: none;
}

.tkt-select-options li.tkt-select-option-item {
    padding: 8px 12px 8px 24px;
    cursor: pointer;
}

.tkt-select-options li.tkt-select-option-item:hover {
    background-color: #f1f5f9;
    color: #6366f1;
}

.tkt-select-options li.selected {
    background-color: #e0e7ff;
    color: #4f46e5;
    font-weight: 600;
}

.tkt-select-options li.no-results {
    color: #94a3b8;
    text-align: center;
    padding: 12px;
    pointer-events: none;
    font-style: italic;
}

.tkt-preset-btn {
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Prompt', sans-serif;
    outline: none;
}

.tkt-preset-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
}

.tkt-preset-btn:active {
    transform: scale(0.95);
}

.tkt-preset-btn.active {
    border-color: #6366f1;
    color: white;
    background-color: #6366f1;
}


