/* CG Dashboard - Admin Tickets Premium Stylesheet */

@keyframes urgentPulse { 
    0% { box-shadow: 0 0 0 rgba(239,68,68,0); } 
    100% { box-shadow: 0 0 15px rgba(239,68,68,0.3); } 
}

/* Priority Filters in Toolbar */
.admin-priority-filter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-priority-filter-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-priority-chips {
    display: flex;
    gap: 6px;
}

.admin-priority-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-display);
}

.admin-priority-chip:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-priority-chip.active {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-priority-chip.prio-low.active {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.12);
}

.admin-priority-chip.prio-medium.active {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
}

.admin-priority-chip.prio-high.active {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(239, 68, 68, 0.12);
}

.admin-priority-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Sidebar Ticket Items (Admin) */
.admin-ticket-item {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.admin-ticket-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.admin-ticket-item.active {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.admin-ticket-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: var(--accent-purple);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--accent-purple);
}

/* Left borders based on status */
.admin-ticket-item.status-open {
    border-left: 3px solid var(--accent-amber);
    background: rgba(251, 191, 36, 0.04);
}

.admin-ticket-item.status-open:hover {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.15);
}

.admin-ticket-item.status-resolved {
    border-left: 3px solid var(--accent-emerald);
    background: rgba(34, 211, 153, 0.04);
}

.admin-ticket-item.status-resolved:hover {
    background: rgba(34, 211, 153, 0.06);
    border-color: rgba(34, 211, 153, 0.15);
}

.admin-ticket-item.status-closed {
    border-left: 3px solid var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.admin-ticket-item.status-closed:hover {
    background: rgba(255, 255, 255, 0.04);
}

.admin-ticket-item.urgent {
    border-color: rgba(239, 68, 68, 0.3);
    animation: urgentBorderPulse 2s infinite alternate;
}

@keyframes urgentBorderPulse {
    0% { border-color: rgba(239, 68, 68, 0.25); box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    100% { border-color: rgba(239, 68, 68, 0.5); box-shadow: inset 0 0 8px rgba(239, 68, 68, 0.05); }
}

/* Admin Chat Composer */
.admin-composer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 10, 0.4);
}

.admin-composer-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-composer-input-wrap {
    flex: 1;
    display: flex;
}

.admin-composer-input {
    width: 100%;
    height: 42px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 16px;
    color: #fff;
    font-size: 13.5px;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font-body);
    resize: none;
    line-height: 1.5;
}

.admin-composer-input:focus {
    border-color: var(--accent-purple);
    background: rgba(0, 0, 0, 0.55);
}

.admin-composer-btn-attach {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.admin-composer-btn-attach:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.admin-composer-btn-send {
    height: 42px;
    padding: 0 20px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
}

.admin-composer-btn-send:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.admin-closed-notice {
    padding: 16px;
    text-align: center;
    background: rgba(244, 63, 94, 0.05);
    border-top: 1px solid rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Attachment Preview in Admin Composer */
.admin-attachment-preview {
    margin-top: 10px;
}

.admin-attachment-chip {
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-attachment-chip button {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    display: flex;
    align-items: center;
}

.admin-attachment-chip button:hover {
    color: #fff;
}