:root {
    --timex-red: #E31837;
    --timex-black: #111111;
    --timex-gray-dark: #4A4A4A;
    --timex-gray-light: #F5F5F5;
    --timex-border: #E0E0E0;
    --timex-white: #FFFFFF;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--timex-white);
    color: var(--timex-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.app-header {
    background-color: #2d2d2d;
    border-bottom: 1px solid var(--timex-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

h1 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    border-left: 1px solid var(--timex-border);
    padding-left: 2rem;
}

/* Main Content */
.app-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-container {
    font-size: 0.95rem;
    color: var(--timex-gray-dark);
    line-height: 1.6;
    margin-bottom: 2rem;

}

/* Controls (Search & Stats) */
.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--timex-gray-dark);
    width: 20px;
    height: 20px;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    font-family: var(--font-family);
    border: 1px solid var(--timex-border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#searchInput:focus {
    border-color: var(--timex-black);
    box-shadow: 0 0 0 1px var(--timex-black);
}

.clear-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--timex-gray-dark);
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: none;
}

.clear-icon:hover {
    color: var(--timex-black);
}

.stats-wrapper {
    font-size: 0.9rem;
    color: var(--timex-gray-dark);
    font-weight: 500;
}

/* Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--timex-border);
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background-color: var(--timex-gray-light);
}

th {
    padding: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--timex-gray-dark);
    border-bottom: 2px solid var(--timex-border);
}

td {
    padding: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--timex-border);
    color: var(--timex-black);
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: #fcfcfc;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-ob {
    background-color: #ffebee;
    color: var(--timex-red);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
}

.btn-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--timex-white);
    border: 1px solid var(--timex-border);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--timex-black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
    border-color: var(--timex-black);
    background-color: var(--timex-gray-light);
}

.btn-pagination:disabled {
    color: #ccc;
    border-color: var(--timex-border);
    cursor: not-allowed;
}

.btn-pagination i {
    width: 18px;
    height: 18px;
}

#pageInfo {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--timex-gray-dark);
}

.batt-comp-mobile {
    display: none;
    font-size: 0.85em;
    color: var(--timex-gray-dark);
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .app-main {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    h1 {
        border-left: none;
        padding-left: 0;
        font-size: 1rem;
    }

    .controls-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    #searchInput {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .hide-mobile {
        display: none;
    }

    .batt-comp-mobile {
        display: block;
    }

    .btn-pagination {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    #pageInfo {
        font-size: 0.85rem;
    }
}