/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;

    color: #333;
}

.container {
    
    margin: 0px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header Styling */
header h1 {
    text-align: center;
    color: #007bff;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

header p {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
}

/* Form Styling */
form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

input[type="file"] {
    font-size: 1rem;
    margin-right: 15px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Table Container */
#logTableContainer {
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}

#logTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    min-width: 800px; /* Ensures a minimum width for large datasets */
}

#logTable th, #logTable td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#logTable th {
    background-color: #f1f1f1;
    font-weight: bold;
    color: #333;
}

#logTable tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#logTable tbody tr:hover {
    background-color: #f1f7ff;
}

/* Icon Styling */
.status-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.status-success {
    background-color: #28a745;
    border-radius: 50%;
}
.status-redirect{
    background-color: #f8f400;
    border-radius: 50%;
}

.status-client-error {
    background-color: #ff7707;
    border-radius: 50%;
}

.status-server-error {
    background-color: #91000e;
    border-radius: 50%;
}
/* Filters Section */
#filters {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

#searchInput {
    width: 65%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#statusFilter {
    width: 30%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}
th {
    cursor: pointer;
    position: relative;
}

th::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #ddd;
    display: none;
}

th.sorted-asc::after {
    display: block;
    border-top-color: #333;
    transform: translateY(-50%) rotate(180deg);
}

th.sorted-desc::after {
    display: block;
    border-top-color: #333;
}

th {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Space for the arrow icons */
}

th::after {
    content: '⇅'; /* Default up and down arrows */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #aaa; /* Default arrow color */
}

th.sorted-asc::after {
    content: '↑'; /* Up arrow for ascending sort */
    color: #333; /* Highlighted arrow color */
}

th.sorted-desc::after {
    content: '↓'; /* Down arrow for descending sort */
    color: #333; /* Highlighted arrow color */
}
