/* Access Control Admin CSS */
.access-admin {
    padding: 2rem;
}

.access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.access-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.access-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.access-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.access-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.access-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.device-card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.device-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.device-status.active { background: #d1fae5; color: #065f46; }
.device-status.inactive { background: #fee2e2; color: #991b1b; }

.device-token {
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    user-select: all;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

.access-table {
    width: 100%;
    border-collapse: collapse;
}

.access-table th, .access-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.access-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-muted);
}

.movement-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}
