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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: rgb(173, 240, 76);
    font-size: 2.5rem;
}

/* Auth styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-box {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: rgb(173, 240, 76);
}

.auth-box input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background-color: #0d1117;
    color: #c9d1d9;
}

.auth-box input:focus {
    outline: none;
    border-color: rgb(173, 240, 76);
}

.auth-box button {
    width: 100%;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    background-color: #30363d;
}

.tab-btn.active {
    background-color: rgb(173, 240, 76);
    color: black;
    border-color: rgb(173, 240, 76);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.refresh-btn {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background-color: #2ea043;
}

.refresh-btn:active {
    background-color: #238636;
}

.table-container {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #30363d;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #161b22;
}

thead {
    background-color: #21262d;
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #c9d1d9;
    border-bottom: 1px solid #30363d;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

th.sortable:hover {
    background-color: #30363d;
}

.sort-indicator {
    margin-left: 5px;
    font-size: 12px;
}

th.sortable.asc .sort-indicator::after {
    content: '▲';
}

th.sortable.desc .sort-indicator::after {
    content: '▼';
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #21262d;
    vertical-align: middle;
}

tbody tr:hover {
    background-color: #1f242b;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
}

.profile-link {
    color: rgb(173, 240, 76);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.user-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background-color: #238636;
    color: white;
}

.user-type.collaborator {
    background-color: #8957e5;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #238636;
    color: white;
}

.status-badge.inactive {
    background-color: #6e7681;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #8b949e;
    display: none;
}

.loading.show {
    display: block;
}

.error {
    text-align: center;
    padding: 20px;
    color: #f85149;
    background-color: #490202;
    border-radius: 6px;
    margin-top: 20px;
    display: none;
}

.error.show {
    display: block;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #8b949e;
    font-size: 16px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

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

    th, td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .auth-box {
        padding: 25px;
        margin: 0 15px;
    }
}
