/* =========================================
   TICKET CONTROLS
========================================= */

.ticket-controls {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 16px;

    margin-bottom: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;
}


/* =========================================
   SEARCH
========================================= */

.search-container {
    position: relative;

    width: 100%;

    max-width: 400px;
}


.search-icon {
    position: absolute;

    left: 13px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 13px;
}


.search-container input {
    width: 100%;

    padding: 11px 12px 11px 38px;

    border: 1px solid var(--border);

    border-radius: 7px;

    outline: none;

    font-size: 13px;
}


.search-container input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* =========================================
   FILTERS
========================================= */

.filter-container {
    display: flex;

    gap: 10px;
}


.filter-container select {
    padding: 10px 30px 10px 12px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: white;

    color: var(--text-primary);

    font-size: 12px;

    cursor: pointer;

    outline: none;
}


.filter-container select:focus {
    border-color: var(--primary);
}


/* =========================================
   TICKET TABLE
========================================= */

#ticketsTableBody tr {
    transition: background 0.15s ease;
}


#ticketsTableBody tr:hover {
    background: #f9fafb;
}


.ticket-subject {
    font-weight: 500;
}


.ticket-action {
    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.ticket-action:hover {
    text-decoration: underline;
}


/* =========================================
   EMPTY STATE
========================================= */

.empty-state {
    padding: 50px 20px;

    text-align: center;
}


.empty-state.hidden {
    display: none;
}


.empty-icon {
    font-size: 35px;

    margin-bottom: 10px;
}


.empty-state h3 {
    font-size: 16px;

    margin-bottom: 5px;
}


.empty-state p {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .ticket-controls {
        flex-direction: column;

        align-items: stretch;
    }


    .search-container {
        max-width: none;
    }


    .filter-container {
        width: 100%;
    }


    .filter-container select {
        width: 50%;
    }

}


@media (max-width: 600px) {

    .ticket-controls {
        padding: 12px;
    }


    table {
        min-width: 700px;
    }

}