/* History page specific styles */

.history-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

/* History header */
.history-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: flex;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    margin-right: 30px;
    color: white;
    text-decoration: none;
}

.back-button i {
    margin-right: 10px;
    font-size: 20px;
}

.status-indicators {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.status-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 14px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    display: inline-block;
}

.status-dot.activated {
    background-color: #4cd137;
}

.status-dot.duplicates {
    background-color: #9c88ff;
}

.status-dot.invalid {
    background-color: #e84118;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-button {
    display: flex;
    align-items: center;
    background-color: white;
    color: #192a56;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.filter-button i {
    margin-left: 10px;
}

/* Table styles */
.history-table-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    table-layout: fixed;
}

.history-table thead {
    background-color: rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
}

.history-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    height: 50px;
}

.history-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.25);
}

.history-table td {
    padding: 12px 15px;
    font-size: 14px;
}

/* Status counts */
.status-counts {
    display: flex;
    gap: 15px;
}

.status-count {
    display: flex;
    align-items: center;
}

.status-count .status-dot {
    margin-right: 5px;
}

/* View button */
.view-button {
    background-color: transparent;
    border: none;
    color: #3498db;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.view-button i {
    margin-right: 5px;
}

/* Make the table responsive */
@media (max-width: 1024px) {
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .status-indicators {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }

    .history-table {
        font-size: 12px;
    }

    .history-table th,
    .history-table td {
        padding: 10px;
    }

    .status-counts {
        flex-direction: column;
        gap: 5px;
    }
}
