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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.stats {
    font-size: 14px;
    color: #7f8c8d;
    display: flex;
    gap: 20px;
    align-items: center;
}

.logout-btn {
    padding: 8px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

.filters {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.filters input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filters input:focus {
    outline: none;
    border-color: #3498db;
}

.filters button {
    padding: 10px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.filters button:hover {
    background: #2980b9;
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-x: auto;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1400px;
}

thead {
    position: sticky;
    top: 0;
    background: #34495e;
    z-index: 10;
}

thead th {
    padding: 15px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s;
}

tbody tr:hover {
    background: #f8f9fa;
}

tbody td {
    padding: 12px;
    font-size: 13px;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-word;
}

.tender-name {
    min-width: 250px;
}

.tender-name a {
    color: #3498db;
    text-decoration: none;
}

.tender-name a:hover {
    text-decoration: underline;
}

.agency-name {
    min-width: 180px;
}

.activity-name {
    min-width: 150px;
}

.date {
    white-space: nowrap;
    color: #7f8c8d;
}

.time {
    white-space: nowrap;
    color: #95a5a6;
    font-family: 'Courier New', monospace;
}

.cost {
    text-align: right;
    font-weight: 500;
    color: #27ae60;
}

.reference {
    font-family: 'Courier New', monospace;
    color: #3498db;
    font-weight: 500;
}

.eligibility-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    min-width: 120px;
}

.eligibility-select:focus {
    outline: none;
    border-color: #3498db;
}

.eligibility-select.pending {
    background: #fff3cd;
    color: #856404;
}

.eligibility-select.eligible {
    background: #d4edda;
    color: #155724;
}

.eligibility-select.not-eligible {
    background: #f8d7da;
    color: #721c24;
}

.eligibility-select.under-review {
    background: #d1ecf1;
    color: #0c5460;
}

.loading, .no-more {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.no-more {
    color: #95a5a6;
}

/* Scrollbar styling */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-container::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}
